logger

package
v1.0.0-preview.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level Level
}

func NewConfig

func NewConfig() Config

func (Config) Clone

func (c Config) Clone() Config

func (Config) Validate

func (c Config) Validate() error

type Level

type Level string
const (
	// OffLevel disables logging.
	OffLevel Level = "off"
	// ErrorLevel level. Logs. Used for errors that should definitely be noted.
	// Commonly used for hooks to send errors to an error tracking service.
	ErrorLevel Level = "error"
	// WarnLevel level. Non-critical entries that deserve eyes.
	WarnLevel Level = "warn"
	// InfoLevel level. General operational entries about what's going on inside the
	// application.
	InfoLevel Level = "info"
	// DebugLevel level. Usually only enabled when debugging. Very verbose logging.
	DebugLevel Level = "debug"
	// TraceLevel level. Designates finer-grained informational events than the Debug.
	TraceLevel Level = "trace"
)

Jump to

Keyboard shortcuts

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