Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Debug(ctx context.Context, msg string, tags ...map[string]any)
- func (l *Logger) Error(ctx context.Context, msg string, tags ...map[string]any)
- func (l *Logger) Info(ctx context.Context, msg string, tags ...map[string]any)
- func (l *Logger) Warn(ctx context.Context, msg string, tags ...map[string]any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is an slog logger that implements the logging.Logger interface
func NewJSONLogger ¶
func NewJSONLogger(opts *slog.HandlerOptions) *Logger
NewJSONLogger returns a new json logger
func NewTextLogger ¶
func NewTextLogger(opts *slog.HandlerOptions) *Logger
NewTextLogger returns a new text logger
Click to show internal directories.
Click to hide internal directories.