Documentation
¶
Index ¶
- func BuildLogger(w io.Writer, format LogFormat, level stdslog.Level) logging.Logger
- func NewSlogAdapter(slogLogger *stdslog.Logger) *slogAdapter
- type LogFormat
- type NoopLogger
- func (n NoopLogger) Debug(ctx context.Context, msg string, args ...any)
- func (n NoopLogger) Error(ctx context.Context, err error, args ...any)
- func (n NoopLogger) Info(ctx context.Context, msg string, args ...any)
- func (n NoopLogger) Log(ctx context.Context, level slog.Level, msg string, args ...any)
- func (n NoopLogger) Warn(ctx context.Context, msg string, args ...any)
- func (n NoopLogger) With(args ...any) logging.Logger
- func (n NoopLogger) WithGroup(name string) logging.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildLogger ¶
func NewSlogAdapter ¶
Types ¶
type LogFormat ¶
type LogFormat string
func (*LogFormat) MarshalText ¶
func (*LogFormat) UnmarshalText ¶
type NoopLogger ¶ added in v0.0.21
type NoopLogger struct{}
func (NoopLogger) Debug ¶ added in v0.0.21
func (n NoopLogger) Debug(ctx context.Context, msg string, args ...any)
Debug implements logging.Logger.
func (NoopLogger) Error ¶ added in v0.0.21
func (n NoopLogger) Error(ctx context.Context, err error, args ...any)
Error implements logging.Logger.
func (NoopLogger) Info ¶ added in v0.0.21
func (n NoopLogger) Info(ctx context.Context, msg string, args ...any)
Info implements logging.Logger.
func (NoopLogger) Log ¶ added in v0.0.21
Log implements logging.Logger.
func (NoopLogger) Warn ¶ added in v0.0.21
func (n NoopLogger) Warn(ctx context.Context, msg string, args ...any)
Warn implements logging.Logger.
func (NoopLogger) With ¶ added in v0.0.21
func (n NoopLogger) With(args ...any) logging.Logger
With implements logging.Logger.
func (NoopLogger) WithGroup ¶ added in v0.0.21
func (n NoopLogger) WithGroup(name string) logging.Logger
WithGroup implements logging.Logger.
Click to show internal directories.
Click to hide internal directories.