Nginx ngx_http_log_module

ngx_http_log_module

指定日志格式的记录请求

 

1、log_format name string ...

string可以使用nginx核心模块及其他模块内嵌的变量
只能在http中写

2、access_log path [ format[buffer = siez ][gzip=level] [flush = time] [if = condition]]

access_log off;
访问日志文件路径,格式及相关的缓冲配置
buffre =size
flush = time

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2019-11-27 14:11  MrChengs  阅读(316)  评论(0编辑  收藏  举报