Documentation ¶
Index ¶
- type ZapAdapter
- func (l *ZapAdapter) Debug(action string, data ...lager.Data)
- func (l *ZapAdapter) Error(action string, err error, data ...lager.Data)
- func (l *ZapAdapter) Fatal(action string, err error, data ...lager.Data)
- func (l *ZapAdapter) Info(action string, data ...lager.Data)
- func (l *ZapAdapter) RegisterSink(_ lager.Sink)
- func (l *ZapAdapter) Session(task string, data ...lager.Data) lager.Logger
- func (l *ZapAdapter) SessionName() string
- func (l *ZapAdapter) WithData(data lager.Data) lager.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZapAdapter ¶
ZapAdapter is an adapter for lager log interface using zap logger
func NewZapAdapter ¶
func NewZapAdapter(component string, zapLogger *zap.Logger) *ZapAdapter
NewZapAdapter creates a new ZapAdapter using the passed in zap.Logger
func (*ZapAdapter) Debug ¶
func (l *ZapAdapter) Debug(action string, data ...lager.Data)
Debug logs a debug message
func (*ZapAdapter) Error ¶
func (l *ZapAdapter) Error(action string, err error, data ...lager.Data)
Error logs an error message
func (*ZapAdapter) Fatal ¶
func (l *ZapAdapter) Fatal(action string, err error, data ...lager.Data)
Fatal logs an fatal error message
func (*ZapAdapter) Info ¶
func (l *ZapAdapter) Info(action string, data ...lager.Data)
Info logs a informative message
func (*ZapAdapter) RegisterSink ¶
func (l *ZapAdapter) RegisterSink(_ lager.Sink)
RegisterSink of a ZapAdapter does noting as sinnk is configured in the underlying zap logger
func (*ZapAdapter) SessionName ¶
func (l *ZapAdapter) SessionName() string
SessionName returns the current logging session name
Click to show internal directories.
Click to hide internal directories.