Documentation
¶
Overview ¶
Package funcr implements github.com/go-logr/logr.Logger in terms of an arbitrary "write" function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageClass ¶
type MessageClass int
MessageClass indicates which category or categories of messages to consider.
const ( None MessageClass = iota All Info Error )
type Options ¶
type Options struct {
// LogCaller tells funcr to add a "caller" key to some or all log lines.
// This has some overhead, so some users might not want it.
LogCaller MessageClass
// Verbosity tells funcr which V logs to be write. Higher values enable
// more logs.
Verbosity int
}
Options carries parameters which influence the way logs are generated.
Click to show internal directories.
Click to hide internal directories.