Documentation
¶
Overview ¶
Package logger
Package logger
Index ¶
- type Decorator
- func (loggerDecorator *Decorator) Debug(msg string)
- func (loggerDecorator *Decorator) Debugf(msg string, v ...interface{})
- func (loggerDecorator *Decorator) Error(msg string)
- func (loggerDecorator *Decorator) Errorf(msg string, v ...interface{})
- func (loggerDecorator *Decorator) Fatal(msg string)
- func (loggerDecorator *Decorator) Fatalf(msg string, v ...interface{})
- func (loggerDecorator *Decorator) Info(msg string)
- func (loggerDecorator *Decorator) Infof(msg string, v ...interface{})
- func (loggerDecorator *Decorator) Init(logPath, logName, logLevel string, logConfig *config.LogConfig)
- func (loggerDecorator *Decorator) LogHandler() *slog.Logger
- func (loggerDecorator *Decorator) ShutdownCallback(ctx context.Context) error
- func (loggerDecorator *Decorator) Warn(msg string)
- func (loggerDecorator *Decorator) Warnf(msg string, v ...interface{})
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decorator ¶
type Decorator struct {
// contains filtered or unexported fields
}
func NewLoggerAdapter ¶
func (*Decorator) LogHandler ¶
func (*Decorator) ShutdownCallback ¶
type Interface ¶
type Interface interface {
Init(logPath, logName, logLevel string, logConfig *config.LogConfig)
ShutdownCallback(ctx context.Context) error
LogHandler() *slog.Logger
Debug(msg string)
Debugf(msg string, v ...interface{})
Info(msg string)
Infof(msg string, v ...interface{})
Warn(msg string)
Warnf(msg string, v ...interface{})
Error(msg string)
Errorf(msg string, v ...interface{})
Fatal(msg string)
Fatalf(msg string, v ...interface{})
}
Click to show internal directories.
Click to hide internal directories.