monkeyDluffy6017 commented on code in PR #9619:
URL: https://github.com/apache/apisix/pull/9619#discussion_r1230355315


##########
apisix/plugins/log-rotate.lua:
##########
@@ -130,6 +132,18 @@ local function scan_log_folder(log_file_name)
     return t, log_dir
 end
 
+local function get_custom_logfile_name()
+    local local_conf = core.config.local_conf()
+
+    local custom_error_log_filename =
+        core.table.try_read_attr(local_conf, "nginx_config", "error_log")
+    local custom_access_log_filename =
+        core.table.try_read_attr(local_conf, "nginx_config", "http", 
"access_log")
+
+    return custom_access_log_filename, custom_error_log_filename
+
+end
+
 
 local function rename_file(log, date_str)

Review Comment:
   need two blanks



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to