Documentation ¶
Index ¶
- type Logger
- type SlogWrapper
- func (l *SlogWrapper) Debug(msg string, keysAndValues ...interface{})
- func (l *SlogWrapper) Error(msg string, keysAndValues ...interface{})
- func (l *SlogWrapper) Info(msg string, keysAndValues ...interface{})
- func (l *SlogWrapper) ParseLogLevel(level string) (slog.Level, error)
- func (l *SlogWrapper) SetLogLevel(level slog.Level)
- func (l *SlogWrapper) Warn(msg string, keysAndValues ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlogWrapper ¶
type SlogWrapper struct {
// contains filtered or unexported fields
}
func NewSlogWrapper ¶
func NewSlogWrapper(logger *slog.Logger, logLevel *slog.LevelVar) *SlogWrapper
NewSlogWrapper creates a new instance of SlogWrapper with the given slog.Logger.
func (*SlogWrapper) Debug ¶
func (l *SlogWrapper) Debug(msg string, keysAndValues ...interface{})
func (*SlogWrapper) Error ¶
func (l *SlogWrapper) Error(msg string, keysAndValues ...interface{})
func (*SlogWrapper) Info ¶
func (l *SlogWrapper) Info(msg string, keysAndValues ...interface{})
func (*SlogWrapper) ParseLogLevel ¶
func (l *SlogWrapper) ParseLogLevel(level string) (slog.Level, error)
func (*SlogWrapper) SetLogLevel ¶
func (l *SlogWrapper) SetLogLevel(level slog.Level)
func (*SlogWrapper) Warn ¶
func (l *SlogWrapper) Warn(msg string, keysAndValues ...interface{})
Click to show internal directories.
Click to hide internal directories.