Help us shape the future of Go! Take the 2026 Go Developer Survey

fancylog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 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