log_format 指令
Syntax : name [escape =default|josn|none] string "....";
default : combined "...";
context : http
access_log 指令
Syntax : path [format [buffer=size] [gzip[=level]] [flush=time] [if=condition]];
access_log off;
default : logs/access.log combined;
context : http,server,location,if in location,limit_except
-> path 指定日志路径 也可以是变量 不开启cache 时 每条日志都需要IO开销 非常好性能
->if 通过变量判断日志是否记录
->日志缓存
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。