Directive reference
access_log
Selects the access-log destination and format.
| Syntax | access_log path [format [buffer=size] [gzip[=level]] [flush=time] [if=condition]]; | access_log off; |
|---|---|
| Contexts | httpserverlocationlimit_except |
| Default | none |
Behavior
The format must be declared with log_format at http scope. Variables are rendered after request processing.
Example
log_format concise '$remote_addr $request $status';
access_log /var/log/xin/access.log concise; Related directives
log_format · error_log