MCPcopy
hub / github.com/op/go-logging / Formatter

Interface Formatter

format.go:104–106  ·  view source on GitHub ↗

Formatter is the required interface for a custom log record formatter.

Source from the content-addressed store, hash-verified

102
103// Formatter is the required interface for a custom log record formatter.
104type Formatter interface {
105 Format(calldepth int, r *Record, w io.Writer) error
106}
107
108// formatter is used by all backends unless otherwise overriden.
109var formatter struct {

Callers 4

BenchmarkStringFormatterFunction · 0.65
FormattedMethod · 0.65
NewStringFormatterFunction · 0.65
FormatMethod · 0.65

Implementers 1

Calls

no outgoing calls

Tested by

no test coverage detected