Documentation
¶
Overview ¶
Package log appends timestamped messages to hook log files with automatic rotation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Message ¶
func Message(logFile, sessionID, msg string)
Message appends a timestamped log line to the given file. Rotates the log when it exceeds config.HookLogMaxBytes, keeping one previous generation (.1 suffix) - same pattern as eventlog.
Parameters:
- logFile: Absolute path to the log file
- sessionID: Session identifier (truncated to 8 chars)
- msg: Log message to append
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.