package
1.0.0
Repository: https://github.com/mdllife/teller.git
Documentation: pkg.go.dev

# Functions

FromContext return a *logrus.Logger from a context.
NewFileWriteHook returns a new WriteHook for a file.
NewLogger creates a logrus.Logger, which logs to os.Stdout.
NewStdoutWriteHook returns a new WriteHook for stdout.
WithContext puts a logrus.FieldLogger into a context.

# Structs

ContextHook adds "file", "func", "lineno" context to log lines.
TextFormatter formats logs into text.
WriteHook is a logrus.Hook that logs to an io.Writer.