Re: Integrating C++ singletons into postgresql extensions???
От | Tom Lane |
---|---|
Тема | Re: Integrating C++ singletons into postgresql extensions??? |
Дата | |
Msg-id | 19294.1413645565@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Integrating C++ singletons into postgresql extensions??? (Stephen Woodbridge <woodbri@swoodbridge.com>) |
Ответы |
Re: Integrating C++ singletons into postgresql extensions???
|
Список | pgsql-general |
Stephen Woodbridge <woodbri@swoodbridge.com> writes: > On 10/18/2014 5:38 AM, Andres Freund wrote: >>> 3. What do for logging classes when integrating C++ code into postgresql? >> I don't really know what you want to do here. My guess is that it'd be >> most appropriate to map the logging onto postgres' internal >> logging. That should easily be possible. > Ahh, sorry this is just debug info that we write to stdout when we are > testing and debug the code from the command line. There are some > packages like log4cpp and log4cxx that provide objects that can be > easily configure to change the output stream from stdout to a log file > or turn it off completely. FWIW, if you are using the logging collector (highly recommended), output to a backend process's stdout or stderr will be caught and included in the log, though it won't have a log_line_prefix. This might be a usable substitute for adapting your code. regards, tom lane
В списке pgsql-general по дате отправления: