libpq logging redirection

Started by Nonameover 15 years ago3 messagesgeneral
Jump to latest
#1Noname
devman@gmx-topmail.de

Hello Postgres Community,

ist there any possibility for libpq clients to redirect the messages that are logged to stderr by libpq e.g. by registering a 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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: libpq logging redirection

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 registering a callback function to handle error logging by oneself?

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

regards, tom lane

#3Noname
devman@gmx-topmail.de
In reply to: Tom Lane (#2)
Re: libpq logging redirection

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