formatter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonFormatter

type JsonFormatter struct {
	TimeFormat     string
	CallerFullPath bool
}

func (*JsonFormatter) Format

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

Format renders a single log entry

type TextFormatter

type TextFormatter struct {
	TimeFormat     string
	CallerFullPath bool
}

func (*TextFormatter) Format

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

Format renders a single log entry

Jump to

Keyboard shortcuts

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