Commit 38fe0955 by edetmt

logs date

1 parent 58af5829
Showing with 1 additions and 1 deletions
......@@ -56,7 +56,7 @@ function log_record(method,url,data,ruletag)
local LOCAL_TIME = ngx.localtime()
local log_json_obj = CLIENT_IP .. " " .. LOCAL_TIME .. " " .. method .. " " .. url .. " " .. config_set_ip_addr .." ".. SERVER_NAME .. " " ..USER_AGENT .. " " ..data .. " " ..ruletag
local LOG_LINE = log_json_obj
local LOG_NAME = LOG_PATH..'/'..ngx.today().."_waf.log"
local LOG_NAME = LOG_PATH..'/'..os.date("%Y-%m-%d", os.time()).."_waf.log"
--local LOG_NAME = LOG_PATH..'/'.."waf.log"
local file = io.open(LOG_NAME,"a")
if file == nil then
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!