Documentation
¶
Index ¶
- Constants
- type Level
- type Logger
- func (log *Logger) Error(ctx context.Context, msg string, args ...any)
- func (log *Logger) Errorc(ctx context.Context, caller int, msg string, args ...any)
- func (log *Logger) Info(ctx context.Context, msg string, args ...any)
- func (log *Logger) Infoc(ctx context.Context, caller int, msg string, args ...any)
- func (log *Logger) Warn(ctx context.Context, msg string, args ...any)
- func (log *Logger) Warnc(ctx context.Context, caller int, msg string, args ...any)
Constants ¶
View Source
const ( LevelDebug = Level(slog.LevelDebug) LevelInfo = Level(slog.LevelInfo) LevelWarn = Level(slog.LevelWarn) LevelError = Level(slog.LevelError) )
A set of possible logging levels
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger represents a logger for logging information
Click to show internal directories.
Click to hide internal directories.