xin

Directive reference

access_log

Selects the access-log destination and format.

Syntaxaccess_log path [format [buffer=size] [gzip[=level]] [flush=time] [if=condition]]; | access_log off;
Contextshttpserverlocationlimit_except
Defaultnone

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