formatter

package
v0.0.0-...-90ece10 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NeedsQuoting

func NeedsQuoting(text string) bool

Types

type TextFormatter

type TextFormatter struct {
	logrus.TextFormatter

	FormatValue func(value interface{}) string
	// contains filtered or unexported fields
}

TextFormatter formats logs into text

func New

func New() *TextFormatter

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