Versions in this module Expand all Collapse all v1 v1.5.0 Apr 27, 2026 v1.4.0 Apr 27, 2026 v1.3.0 Apr 26, 2026 v1.2.0 Apr 24, 2026 v1.1.4 Apr 24, 2026 v1.1.3 Apr 24, 2026 v1.1.2 Apr 24, 2026 v1.1.1 Apr 24, 2026 Changes in this version + func ReloadConfig() + type AuditConfig struct + MaxAgeDays int + MaxBackups int + MaxFileSize int64 + func GetConfig() AuditConfig v1.1.0 Apr 20, 2026 Changes in this version + const MaxFileAge + const MaxFileSize + const MaxTotalSize + type ErrorInfo struct + Action string + OK bool + Reason string + Timestamp string + type HealthStatus struct + Agent string + ErrorCount int + LastEntryOK *bool + LastEntryTime string + LogFileAge string + LogFilePath string + LogFileSize int64 + NeedsRetention bool + NeedsRotation bool + OK bool + TotalAuditSize int64 + WriteAccessible bool type Logger + func (l *Logger) EnforceRetention() error + func (l *Logger) GetErrors(limit int) ([]ErrorInfo, error) + func (l *Logger) HealthCheck() (*HealthStatus, error) v1.0.3 Apr 19, 2026 v1.0.2 Apr 18, 2026 v1.0.1 Apr 18, 2026 Changes in this version + type LogEntry struct + Action string + Agent string + DurMs int64 + Field string + OK bool + Path string + Reason string + Timestamp string + Transport string + type Logger struct + func New(agentName string) (*Logger, error) + func (l *Logger) Close() error + func (l *Logger) LogEntry(entry LogEntry)