Contents
logging_collector
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
.
Usage
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
:
log_directory
log_filename
log_file_mode
log_rotation_age
log_rotation_size
log_truncate_on_rotation
Change history
- PostgreSQL 8.3
- renamed from
redirect_stderr
(commit fd801f4f)
- renamed from
References
- PostgreSQL documentation: logging_collector