Documentation ¶
Index ¶
- Constants
- func NewStdLogger(logger *Logger, level Level) *log.Logger
- type Level
- type Logger
- func (log *Logger) Debug(ctx context.Context, msg string, args ...any)
- func (log *Logger) Error(ctx context.Context, 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)
- type TraceIDFunc
Constants ¶
View Source
const ( LevelDebug = Level(slog.LevelDebug) LevelInfo = Level(slog.LevelInfo) LevelWarn = Level(slog.LevelWarn) LevelError = Level(slog.LevelError) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
type TraceIDFunc ¶
Click to show internal directories.
Click to hide internal directories.