add create log file

This commit is contained in:
2026-03-11 20:35:23 +07:00
parent a39e68cabc
commit 2dd3542ff9
3 changed files with 13 additions and 0 deletions

View File

@@ -270,6 +270,12 @@ end
# Main loop: runs indefinitely every CHECK_INTERVAL_SECS
function main_loop()
# Ensure log file exists
if !isfile(LogFilePath)
open(LogFilePath, "a") do io
# create empty file
end
end
# limit log file to latest 100 events
limitTextFileLines(LogFilePath; maxlines=100)
thisFilePath = @__FILE__