formatter

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	// contains filtered or unexported fields
}

func Build

func Build(orgF logrus.Formatter, field string, rfmt RecordFmt) Formatter

func (Formatter) Format

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

func (Formatter) GetOriginal

func (f Formatter) GetOriginal() logrus.Formatter

type RecordFmt

type RecordFmt func(file, function string, line int) string

Jump to

Keyboard shortcuts

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