首页 > Web开发 > 详细

Nginx ngx_http_log_module

时间:2019-11-27 15:00:13      阅读:76      评论:0      收藏:0      [点我收藏+]

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

技术分享图片

 

 

 

技术分享图片

 

 

 

 

 

 

 

 

 

 

 

 

Nginx ngx_http_log_module

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!