Documentation
¶
Overview ¶
Package logger provides structured JSON logging with level filtering.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Key string
Value interface{}
}
Field is a key-value pair for structured log context.
type Level ¶
type Level int
Level represents the severity of a log message.
func ParseLevel ¶
ParseLevel parses a log level string. Defaults to info for unknown values.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger writes structured JSON log entries to stderr.
Click to show internal directories.
Click to hide internal directories.