Documentation ¶
Index ¶
Constants ¶
View Source
const ( RootCommandKey = "root_command" SubCommandKey = "sub_command" CommitKey = "commit" VersionKey = "version" BuildTimeKey = "build_time" GoVersionKey = "go_version" )
Variables ¶
This section is empty.
Functions ¶
func FromCtx ¶
FromCtx returns the Logger associated with the ctx. If no logger is associated, the default logger is returned, unless it is nil in which case a disabled logger is returned.
func FromCtxWithCtx ¶
Types ¶
type LeveledLogger ¶
type LeveledLogger struct {
// contains filtered or unexported fields
}
func NewLeveledLogger ¶
func NewLeveledLogger(lgr *zap.Logger) LeveledLogger
func (*LeveledLogger) Debug ¶
func (l *LeveledLogger) Debug(msg string, keysAndValues ...interface{})
func (*LeveledLogger) Error ¶
func (l *LeveledLogger) Error(msg string, keysAndValues ...interface{})
func (*LeveledLogger) Info ¶
func (l *LeveledLogger) Info(msg string, keysAndValues ...interface{})
func (*LeveledLogger) Warn ¶
func (l *LeveledLogger) Warn(msg string, keysAndValues ...interface{})
Click to show internal directories.
Click to hide internal directories.