社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
syntax: log_format name format [format ...]
default: log_format combined "..."
context: http server
Directivelog_format describes the format of a log entry. Besides generalvariables in the format it is possible to use variables which existonly at the moment of record into the log:
$pipe, "p" if request was pipelining
The headers, transmitted to client, begin from the prefix "sent_http_", for example, $sent_http_content_range.
Notethat variables produced by other modules can also be logged. Forexample you can log upstream response headers with the prefix"upstream_http_", see upstream.
In the configuration there is always a predetermined format "combined":
log_format combined '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
http://wiki.codemongers.com/NginxHttpLogModule#log_format
log_format
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!