logger

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package logger contains logger configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level Level `json:",omitempty"`
}

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"
)

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

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