logging

package
v28.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

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

func PatchStdLogger(l *log.Logger)

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.

func Usage

func Usage() string

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]interface{})

func (*TestLogDestination) LogUnstructured

func (dst *TestLogDestination) LogUnstructured(message string)

func (*TestLogDestination) Messages

func (dst *TestLogDestination) Messages() []map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL