Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debugw(msg string, keysAndValues ...interface{}) Infow(msg string, keysAndValues ...interface{}) Warnw(msg string, keysAndValues ...interface{}) Errorw(msg string, keysAndValues ...interface{}) Fatalw(msg string, keysAndValues ...interface{}) Panicw(msg string, keysAndValues ...interface{}) With(keysAndValues ...interface{}) Logger Sync() error SafeSync() }
Logger is a logging interface. It supports some of the methods of the zap.SugaredLogger interface.
type Option ¶
type Option func(*options) error
Option is an option for the logger.
func WithStacktrace ¶ added in v0.3.0
WithStacktrace sets the stacktrace of the logger.
Click to show internal directories.
Click to hide internal directories.