chaoslogger

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(allowedLevel *AllowedLevel, writer io.Writer) log.Logger

New returns a new leveled oklog logger. Each logged line will be annotated with a timestamp. The output always goes to stderr.

Types

type AllowedLevel

type AllowedLevel struct {
	// contains filtered or unexported fields
}

AllowedLevel is a settable identifier for the minimum level a log entry must be have.

func (*AllowedLevel) Set

func (l *AllowedLevel) Set(s string) error

Set updates the value of the allowed level.

type Loggers

type Loggers struct {
	OutLogger log.Logger
	ErrLogger log.Logger
}

Jump to

Keyboard shortcuts

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