logger

package
v0.0.0-...-bdae2e2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetFormatter

func SetFormatter(formatter logrus.Formatter)

SetFormatter override the default formatter set before

func SetLevel

func SetLevel(level logrus.Level)

Types

type Formatter

type Formatter struct {
	// DisableColor if turns to true, formatter won't add color for the log levels
	DisableColor bool
}

Formatter formats logs

func (*Formatter) Format

func (f *Formatter) Format(entry *logrus.Entry) ([]byte, error)

Format implements logurs.Formatter

Jump to

Keyboard shortcuts

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