Documentation
¶
Overview ¶
Package logging configures go-log the same way in every binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecentLogs ¶
func RecentLogs() []string
RecentLogs returns the most recent log lines captured when Options.RingBuffer was enabled in Setup.
Types ¶
type Options ¶
type Options struct {
Level string // log level: debug, info, warn or error (default: info)
Format string // output format: text or json (default: text)
RingBuffer bool // also retain the most recent lines in memory (see RecentLogs)
}
Options selects how a binary logs. Zero values keep the defaults: info level, text format and no in-memory ring buffer.
Click to show internal directories.
Click to hide internal directories.