diff --git a/wazuh-notify-go/log/log.go b/wazuh-notify-go/log/log.go index ebd9eab..fac490a 100644 --- a/wazuh-notify-go/log/log.go +++ b/wazuh-notify-go/log/log.go @@ -10,6 +10,14 @@ var logFile *os.File func OpenLogFile(BasePath string) { logFile, _ = os.OpenFile(path.Join(BasePath, "../../log/active-responses.log"), os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600) + _, err := logFile.WriteString( + "\n#######################################\n## START ##" + + "\n" + time.Now().String() + + "\n#######################################\n", + ) + if err != nil { + panic(err) + } } func Log(message string) {