Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Index ¶
- type Attrs
- type Logger
- func (l Logger) Debug(ctx context.Context, msg string, attrs ...slog.Attr)
- func (l Logger) Enabled(ctx context.Context, level slog.Level) bool
- func (l Logger) Error(ctx context.Context, err error, attrs ...slog.Attr)
- func (l Logger) Info(ctx context.Context, msg string, attrs ...slog.Attr)
- func (l Logger) Log(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr)
- func (l Logger) Warn(ctx context.Context, m any, attrs ...slog.Attr)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is a wrapper around an slog.Logger with additional helpers and nil checking.
func (Logger) Log ¶
Log is designed to build logging wrappers; it should not be called directly. See: https://pkg.go.dev/log/slog#hdr-Wrapping_output_methods
Click to show internal directories.
Click to hide internal directories.