Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶ added in v1.13.2
Entry is an entry to be later serialized into zap message and fields.
type Field ¶ added in v1.13.2
type Field struct { Key string Value interface{} }
Field defines a field used inside an internal logging Entry.
type Logger ¶
type Logger interface {
Log(entry Entry)
}
Logger defines interface used for logging.
func DefaultLogger ¶ added in v1.13.2
func DefaultLogger(ws zapcore.WriteSyncer) Logger
DefaultLogger constructs a Logger out of io.Writer.
type Spy ¶ added in v1.13.2
type Spy struct {
// contains filtered or unexported fields
}
Spy is an Fx Printer that captures logged statements. It may be used in tests of Fx logs.
Click to show internal directories.
Click to hide internal directories.