Re: logging hook - Mailing list pgsql-general

From Susan Cassidy
Subject Re: logging hook
Date
Msg-id CAE3Q8omhDsDhnMUTBOs27O+mdPaNjO1d6ELi3eKNsf5TabHSzQ@mail.gmail.com
Whole thread Raw
In response to logging hook  (Alan Nilsson <anilsson@apple.com>)
Responses Re: logging hook  (Alan Nilsson <anilsson@apple.com>)
List pgsql-general
You can log to syslog, and use the syslog definitions file (syslog.conf) to pipe the output to a program that can do whatever you want with it.

Susan


On Tue, May 13, 2014 at 2:29 PM, Alan Nilsson <anilsson@apple.com> wrote:
All

Is there a hook that someone could direct me to that I can use to redirect logging output?  I.e.  I would like to write a small module that pre loads and substitutes the loggers file descriptor with my own to redirect that output.  Possible?

thanks
alan



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Full-Text Search question
Next
From: Alan Nilsson
Date:
Subject: Re: logging hook