Time for action – analyzing a syntax to specify access log
Let's have a look at the syntax of the access_log
directive:
access_log <module>:<place> [<logformat name> [acl acl ...]]
The field
module
is one of the none
, stdio
, daemon
, syslog
, tcp
, and udp
methods, which determine how the messages will be logged to a place
, and is the absolute path to the file or place where the messages should be logged. Let's take a brief look at the meaning of different modules:
none
— The log messages will not be logged at all.stdio
— The log messages will be logged to a file immediately after the completion of each request.daemon
— This module is similar tostdio
module, however the log messages are not written to the disk and are passed to a daemon helper for asynchronous handling instead.syslog
— This module is used to log each message using thesyslog
facility. The parameterplace
is specified in the form of thesyslog
facility and the priority level for the log entries. For example...