diff --git a/api.asp b/api.asp index d686e5f..36c3d94 100644 --- a/api.asp +++ b/api.asp @@ -1528,7 +1528,10 @@ Sub LogToFile(message) On Error Resume Next Dim fso, logFile, logPath - logPath = Server.MapPath("./logs/api.log") + ' Create daily log files: api-2025-11-21.log + Dim logFileName + logFileName = "api-" & Year(Now()) & "-" & Right("0" & Month(Now()), 2) & "-" & Right("0" & Day(Now()), 2) & ".log" + logPath = Server.MapPath("./logs/" & logFileName) Set fso = Server.CreateObject("Scripting.FileSystemObject")