Documentation
¶
Overview ¶
The logging package is an internal logging abstraction, designed to handle both structured and unstructured data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Destination logging.Logger
Functions ¶
func Configure ¶
func Configure(runnercfg *cfg.RunnerConfig)
func PatchStdLogger ¶
Patch a standard 'log' logger (or the default logger if nil) to write to the current Destination. Flags are set to 0 because the Destination will add the necessary timestamps, etc.
Types ¶
type TestLogDestination ¶
type TestLogDestination struct {
// contains filtered or unexported fields
}
func (*TestLogDestination) Clear ¶
func (dst *TestLogDestination) Clear()
func (*TestLogDestination) LogStructured ¶
func (dst *TestLogDestination) LogStructured(message map[string]any)
func (*TestLogDestination) LogUnstructured ¶
func (dst *TestLogDestination) LogUnstructured(message string)
func (*TestLogDestination) Messages ¶
func (dst *TestLogDestination) Messages() []map[string]any
Click to show internal directories.
Click to hide internal directories.