3.10.1. Logging options¶
CouchDB logging configuration.
Current writers include:
stderr: Logs are sent to stderr.
file: Logs are sent to the file set in
syslog: Logs are sent to the syslog daemon.
journald: Logs are sent to stderr without timestamp and log levels compatible with sd-daemon.
You can also specify a full module name here if implement your own writer:
[log] writer = stderr
Specifies the location of file for logging output. Only used by the
[log] file = /var/log/couchdb/couch.log
This path should be readable and writable for user that runs CouchDB service (couchdb by default).
Specifies the size of the file log write buffer in bytes, to enable delayed log writes. Only used by the
[log] write_buffer = 0
Specifies the wait in milliseconds before committing logs to disk, to enable delayed log writes. Only used by the
[log] write_delay = 0
Changed in version 1.3: Added
Logging level defines how verbose and detailed logging will be:
[log] level = info
debug: Detailed debug logging.
info: Informative logging. Includes HTTP requests headlines, startup of an external processes etc.
warn: Warning messages are alerts about edge situations that may lead to errors. For instance, compaction daemon alerts about low or insufficient disk space at this level.
err: Error level includes only things that go wrong, like crash reports and HTTP error responses (5xx codes).
none: Disables logging any messages.
Setting syslog_host is mandatory for
Specifies the syslog host to send logs to. Only used by the
[log] syslog_host = localhost
Specifies the syslog port to connect to when sending logs. Only used by the
[log] syslog_port = 514
Specifies the syslog facility to use with the
[log] syslog_facility = local2
syslogonly knows how to use UDP logging. Please ensure that your
syslogserver has UDP logging enabled.
rsyslogyou can enable the UDP module imudp in
# provides UDP syslog reception module(load="imudp") input(type="imudp" port="514")