A server parameter determining whether to enable the logging collector

logging_collector is a server parameter| determining whether to enable the logging collector, a background process which captures stderr output and redirects it to a log file.

logging_collector was added in PostgreSQL 8.3.

Default value

The default value for logging_collector is: false.


By default, PostgreSQL emits log output to stderr, however unless using the syslog facility, it is generally desirable to use the logging collector to systematically capture log output into a log file.

The following server parameters are only effective if logging_collector is set to true:

Change history


GUC configuration item, Logging