瀏覽代碼

日志加上版本前缀,记录节点切换信息

zjcqoo 6 年之前
父節點
當前提交
90eac68a61
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      nginx.conf

+ 2 - 1
nginx.conf

@@ -32,8 +32,9 @@ http {
   # https://nginx.org/en/docs/http/ngx_http_log_module.html
   # separated by tab (\t)
   log_format              log_proxy escape=none
+    '01	'
     '$time_iso8601	$_origin_id	$_ver	$remote_addr	'
-    '$upstream_cache_status	$request_time	'
+    '$_level	$_switched	$upstream_cache_status	$request_time	'
     '$request_length	$bytes_sent	'
     '$request_method	$_url	$status	$upstream_http_access_control_allow_origin	'
     '$http_user_agent	$_ref	$_mode	$_type'