logging hook

Started by Alan Nilssonalmost 12 years ago3 messagesgeneral
Jump to latest
#1Alan Nilsson
anilsson@apple.com

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

#2Susan Cassidy
susan.cassidy@decisionsciencescorp.com
In reply to: Alan Nilsson (#1)
Re: logging hook

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:

Show quoted text

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

#3Alan Nilsson
anilsson@apple.com
In reply to: Susan Cassidy (#2)
Re: logging hook

Ah yes once again if I’ld just RTFM….. Thanks for pointing that out, I think I can work with that.

alan

On May 13, 2014, at 2:59 PM, Susan Cassidy <susan.cassidy@decisionsciencescorp.com> wrote:

Show quoted text

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