Documentation ¶
Index ¶
- type SLogger
- func (l *SLogger) Debug(ctx context.Context, format string, args ...any) (context.Context, error)
- func (l *SLogger) Error(ctx context.Context, format string, args ...any) (context.Context, error)
- func (l *SLogger) Info(ctx context.Context, format string, args ...any) (context.Context, error)
- func (l *SLogger) Logf(ctx context.Context, opts backend.LogOptions, format string, args ...any) (context.Context, error)
- func (l *SLogger) Warn(ctx context.Context, format string, args ...any) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SLogger ¶
type SLogger struct{}
SLogger implements the backend.Logger interface by wrapping calls to golang's slog package.
func NewSLogger ¶
Returns a new logger object
Click to show internal directories.
Click to hide internal directories.