Thread: libpq logging redirection

libpq logging redirection

From
devman@gmx-topmail.de
Date:
Hello Postgres Community,

ist there any possibility for libpq clients to redirect the messages that are logged to stderr by libpq e.g. by
registeringa callback function to handle error logging by oneself? 

- Regards
--
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl

Re: libpq logging redirection

From
Tom Lane
Date:
devman@gmx-topmail.de writes:
> ist there any possibility for libpq clients to redirect the messages that are logged to stderr by libpq e.g. by
registeringa callback function to handle error logging by oneself? 

http://www.postgresql.org/docs/8.4/static/libpq-notice-processing.html

            regards, tom lane

Re: libpq logging redirection

From
devman@gmx-topmail.de
Date:
It works fine. Thank you very much!
--
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl