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

原文地址:https://www.cnblogs.com/Mrchengs/p/11941835.html