log

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 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 TextFormat

type TextFormat struct {
	ShowInfoLevel   bool
	ShowTimestamp   bool
	TimestampFormat string
}

TextFormat lets use a custom text format.

func NewTextFormat

func NewTextFormat() *TextFormat

NewTextFormat creates the default text formatter.

func (*TextFormat) Format

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

Format formats the log statement.

Jump to

Keyboard shortcuts

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