fancylog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultIndent = "              "

DefaultIndent is the spacing for any output

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	Level int
}

Formatter formats log output

func (*Formatter) Format

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

Format renders a single log entry

func (*Formatter) Pop

func (f *Formatter) Pop()

Pop decreases the level by one

func (*Formatter) Push

func (f *Formatter) Push()

Push increases the level by one

Jump to

Keyboard shortcuts

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