Documentation ¶
Index ¶
- type Core
- func (c *Core) Check(zapEntry zapcore.Entry, checkedEntry *zapcore.CheckedEntry) *zapcore.CheckedEntry
- func (c *Core) Enabled(level zapcore.Level) bool
- func (c *Core) Sync() error
- func (c *Core) With(fields []zapcore.Field) zapcore.Core
- func (c *Core) Write(zapEntry zapcore.Entry, fields []zapcore.Field) error
- type Emitter
- type Logger
- type Receiver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core is a zap Core used for logging
func (*Core) Check ¶
func (c *Core) Check(zapEntry zapcore.Entry, checkedEntry *zapcore.CheckedEntry) *zapcore.CheckedEntry
Check checks the entry and determines if the core should write it.
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
Emitter emits internal logs to registered receivers.
func (*Emitter) AddReceiver ¶
AddReceiver will add a receiver to the emitter.
type Logger ¶
type Logger struct { *zap.SugaredLogger *Emitter }
Logger is a wrapped logger used by the stanza agent.
Click to show internal directories.
Click to hide internal directories.