Versions in this module Expand all Collapse all v0 v0.14.0 Apr 24, 2024 v0.13.0 Feb 27, 2024 Changes in this version + const FormatJsonText + const FormatTextText + const LevelDebugText + const LevelErrorText + const LevelInfoText + const LevelOffText + const LevelWarnText + const LogKeyCaller + const LogKeyContext + const LogKeyLevel + const LogKeyMessage + const LogKeyName + const LogKeyStacktrace + const LogKeyTimestamp + const TypeConsoleText + const TypeFileText + const TypeHttpText + const TypeMQText + func Capped(v interface{}, cap int) string + func DebugShowcase() + func IsTerminal(l Logger) bool + func Levels(prefix string) (ret map[string]*LevelConfig) + func NewWriterAdapter(logger Logger, lvl LoggingLevel) io.Writer + func Padding(v interface{}, padding int) string + func RegisterContextLogFields(extractors ...ContextValuers) + func SetLevel(prefix string, logLevel *LoggingLevel) int + func UpdateLoggingConfiguration(properties *Properties) error + type CallerValuer interface + WithCaller func(caller interface{}) Logger + type ContextValuer func(ctx context.Context) interface + type ContextValuers map[string]ContextValuer + type Contextual interface + WithContext func(ctx context.Context) Logger + type ContextualLogger interface + WithContext func(ctx context.Context) Logger + func New(name string) ContextualLogger + type FmtLogger interface + Debugf func(msg string, args ...interface{}) + Errorf func(msg string, args ...interface{}) + Infof func(msg string, args ...interface{}) + Warnf func(msg string, args ...interface{}) + type Format int + const FormatJson + const FormatText + func (f *Format) UnmarshalText(data []byte) error + func (f Format) MarshalText() ([]byte, error) + func (f Format) String() string + type KVLogger interface + Debug func(msg string, keyvals ...interface{}) + Error func(msg string, keyvals ...interface{}) + Info func(msg string, keyvals ...interface{}) + Warn func(msg string, keyvals ...interface{}) + type KeyValuer interface + WithKV func(keyvals ...interface{}) Logger + type LevelConfig struct + ConfiguredLevel *LoggingLevel + EffectiveLevel *LoggingLevel + Name string + type Leveler interface + WithLevel func(lvl LoggingLevel) Logger + type Logger interface + Log func(keyvals ...interface{}) error + type LoggerProperties struct + FixedKeys utils.CommaSeparatedSlice + Format Format + Location string + Template string + Type LoggerType + type LoggerType int + const TypeConsole + const TypeFile + const TypeHttp + const TypeMQ + func (t *LoggerType) UnmarshalText(data []byte) error + func (t LoggerType) MarshalText() ([]byte, error) + func (t LoggerType) String() string + type LoggingLevel int + const LevelDebug + const LevelError + const LevelInfo + const LevelOff + const LevelWarn + func (l *LoggingLevel) UnmarshalText(data []byte) error + func (l LoggingLevel) MarshalText() ([]byte, error) + func (l LoggingLevel) String() string + type Properties struct + Levels map[string]LoggingLevel + Loggers map[string]*LoggerProperties + Mappings map[string]string + type Stacktracer func() (frames []*runtime.Frame, fallback interface{}) + func RuntimeCaller(skip int) Stacktracer + func RuntimeStacktracer(skip int, depth int) Stacktracer + type StdLogger interface + Print func(v ...interface{}) + Printf func(format string, v ...interface{}) + Println func(v ...interface{})