Documentation
¶
Index ¶
- Variables
- func Error(format string, args ...any)
- func Info(format string, args ...any)
- func SetTimestamps(enabled bool)
- func SetVerbosity(level VerbosityLevel)
- func Signal(kind, ruleID, severity, title, extra string)
- func SignalContext(context map[string]string) string
- func Success(format string, args ...any)
- func Verbose(format string, args ...any)
- func Warn(format string, args ...any)
- type VerbosityLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CurrentVerbosity is the current verbosity level CurrentVerbosity = NormalLevel // ShowTimestamps controls whether timestamps are shown ShowTimestamps = false )
Functions ¶
func SetVerbosity ¶
func SetVerbosity(level VerbosityLevel)
SetVerbosity sets the current verbosity level
func Signal ¶
func Signal(kind, ruleID, severity, title, extra string)
Signal formats any detection signal (simple, correlation, baseline). kind is "rule", "correlation", or "baseline" (no longer displayed in output). extra contains context information that will be displayed on a second line (only in verbose mode).
func SignalContext ¶
SignalContext formats signal context information for the second line
Types ¶
type VerbosityLevel ¶
type VerbosityLevel int
VerbosityLevel represents the logging verbosity
const ( // NormalLevel shows standard output (default) NormalLevel VerbosityLevel = iota // VerboseLevel shows additional details and timestamps VerboseLevel )
Click to show internal directories.
Click to hide internal directories.