浏览 175
分享
4.8. Logging
4.8.1. Logging options
[log]
CouchDB logging configuration.writer
Current writers include:
-stderr
: Logs are sent to stderr.
-file
: Logs are sent to the file set inlog file
.
-syslog
: Logs are sent to the syslog daemon.
You can also specify a full module name here if implement your ownwriter:- [log]
writer = stderr
- [log]
file
Specifies the location of file for logging output. Only used by thefile
writer
:- [log]
file = /var/log/couchdb/couch.log
This path should be readable and writable for user that runs CouchDBservice (couchdb by default).- [log]
write_buffer
Specifies the size of the file log write buffer in bytes, to enabledelayed log writes. Only used by thefile
writer
:- [log]
write_buffer = 0
- [log]
write_delay
Specifies the wait in milliseconds before committing logs to disk, toenable delayed log writes. Only used by thefile
writer
:- [log]
write_delay = 0
- [log]
level
Changed in version 1.3: Addedwarning
level.
Logging level defines how verbose and detailed logging will be:- [log]
level = info
Available levels:
-debug
: Detailed debug logging.
-info
: Informative logging. Includes HTTP requests headlines,startup of an external processes etc.
-notice
-warning
orwarn
: Warning messages are alerts about edge situations thatmay lead to errors. For instance, compaction daemon alerts about lowor insufficient disk space at this level.
-error
orerr
: Error level includes only things that go wrong, like crashreports and HTTP error responses (5xx codes).
-critical
orcrit
-alert
-emergency
oremerg
-none
: Disables logging any messages.- [log]
include_sasl
Includes SASL information in logs:- [log]
include_sasl = true
- [log]
syslog_host
Specifies the syslog host to send logs to. Only used by thesyslog
writer
:- [log]
syslog_host = localhost
- [log]
syslog_port
Specifies the syslog port to connect to when sending logs. Only used bythesyslog
writer
:- [log]
syslog_port = 514
- [log]
syslog_appid
Specifies application name to thesyslog
writer
:- [log]
syslog_appid = couchdb
- [log]
syslog_facility
Specifies the syslog facility to use with thesyslog
writer
:- [log]
syslog_facility = local2
- [log]
评论列表