log

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleFormatter

type SimpleFormatter struct {
	EnableDebug bool
}

SimpleFormatter is a simple but beautiful log formatter Usage:

log.SetFormatter(new(SimpleFormatter))
log.SetReportCaller(true)  // Must do this, or no caller info.

func (*SimpleFormatter) Format

func (s *SimpleFormatter) Format(e *log.Entry) (bytes []byte, retErr error)

Jump to

Keyboard shortcuts

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