Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct { Timestamp time.Time `json:"timestamp"` Level zapcore.Level `json:"level"` Name string `json:"name"` Caller string `json:"caller"` Message string `json:"message"` Fields map[string]any `json:"fields"` }
An Entry is a log entry.
type Filter ¶
type Filter struct { Names []string `json:"names"` Callers []string `json:"callers"` Levels []zapcore.Level `json:"levels"` Before time.Time `json:"before"` After time.Time `json:"after"` Limit int `json:"limit"` Offset int `json:"offset"` }
A Filter filters log entries by name, level, and/or time.
Click to show internal directories.
Click to hide internal directories.