Back to godoc.org
go.mozilla.org/mozlogrus

Package mozlogrus

v2.0.0+incompatible
Latest Go to latest
Published: Oct 31, 2017 | License: MPL-2.0 | Module: go.mozilla.org/mozlogrus

Index

Package Files

func Enable

func Enable(loggerName string)

Enable sets stdout with idiotmatic mozlog formatting

func EnableFormatter

func EnableFormatter(m *MozLogFormatter)

EnableFormatter sets stdout logging with a custom MozLogFormatter

type MozLogFormatter

type MozLogFormatter struct {
	LoggerName string
	Type       string
}

func (*MozLogFormatter) Format

func (m *MozLogFormatter) Format(entry *logrus.Entry) ([]byte, error)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier