Documentation
¶
Overview ¶
Package audit provides structured audit logging for Keep evaluations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger writes audit entries as JSON Lines to a writer.
func NewLoggerFromOutput ¶
NewLoggerFromOutput creates a logger from an output string. "stdout" -> os.Stdout, "stderr" -> os.Stderr, anything else -> file path.
func (*Logger) Log ¶
func (l *Logger) Log(entry engine.AuditEntry)
Log serializes the audit entry as JSON and writes it as a single line. Thread-safe.
Click to show internal directories.
Click to hide internal directories.