formatter

package
v0.0.0-...-26bd4cb Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogrusFormatter = LogrusFormatter{
	TimeFormatter:  "2006-01-02 15:04:05",
	FieldPrefix:    "[",
	FieldSuffix:    "]",
	FieldSeparator: global.Space,
}

Functions

This section is empty.

Types

type LogrusFormatter

type LogrusFormatter struct {
	TimeFormatter  string
	FieldPrefix    string
	FieldSuffix    string
	FieldSeparator string
}

func NewLogrusFormatter

func NewLogrusFormatter() *LogrusFormatter

func (*LogrusFormatter) Format

func (this *LogrusFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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