Documentation
¶
Index ¶
- func Fatalf(format string, args ...any)
- func Init(config Config) error
- type Config
- type Fields
- type Logger
- func (l *Logger) Debug(args ...any)
- func (l *Logger) Debugf(format string, args ...any)
- func (l *Logger) Error(args ...any)
- func (l *Logger) Errorf(format string, args ...any)
- func (l *Logger) Fatal(args ...any)
- func (l *Logger) Fatalf(format string, args ...any)
- func (l *Logger) Info(args ...any)
- func (l *Logger) Infof(format string, args ...any)
- func (l *Logger) Warn(args ...any)
- func (l *Logger) Warnf(format string, args ...any)
- func (l *Logger) WithError(err error) *logrus.Entry
- func (l *Logger) WithFields(fields Fields) *logrus.Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Level string `mapstructure:"level"`
Format string `mapstructure:"format"`
Module string `mapstructure:"module"`
MaxSize int `mapstructure:"max_size"`
MaxAge int `mapstructure:"max_age"`
MaxBackups int `mapstructure:"max_backups"`
Compress bool `mapstructure:"compress"`
}
Configuration for the logger
type Logger ¶
Logger is a wrapper around logrus.Logger
Click to show internal directories.
Click to hide internal directories.