clog

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	UseColors        bool // show colors on log level
	UseMessageColors bool // show message color as well as level
	ShowFullLevel    bool // true to show full level [WARNING] instead [WARN]
	TrimMessages     bool // true to trim whitespace on messages
	UseTitleLevel    bool // always capitalize first letter of the level
}

Formatter - logrus formatter, implements logrus.Formatter

func (*Formatter) Format

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

Jump to

Keyboard shortcuts

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