MCPcopy Index your code
hub / github.com/foxcpp/maddy / Logger

Struct Logger

framework/log/log.go:44–54  ·  view source on GitHub ↗

Logger is the structure that writes formatted output to the underlying log.Output object. Logger is stateless and can be copied freely. However, consider that underlying log.Output will not be copied. Each log message is prefixed with logger name. Timestamp and debug flag formatting is done by l

Source from the content-addressed store, hash-verified

42// No serialization is provided by Logger, its log.Output responsibility to
43// ensure goroutine-safety if necessary.
44type Logger struct {
45 Parent *Logger
46
47 Out Output
48 Name string
49 Debug bool
50
51 // Additional fields that will be added
52 // to the Msg output.
53 Fields map[string]interface{}
54}
55
56func (l *Logger) Zap() *zap.Logger {
57 // TODO: Migrate to using zap natively.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected