logging

package
v0.0.0-...-9c88063 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, args ...any)
	Info(msg string, args ...any)
	Warn(msg string, args ...any)
	Error(msg string, args ...any)
}

type SlogLogger

type SlogLogger struct {
	// contains filtered or unexported fields
}

func NewSlogLogger

func NewSlogLogger(writer io.Writer, level slog.Level) SlogLogger

func (SlogLogger) Debug

func (s SlogLogger) Debug(msg string, args ...any)

func (SlogLogger) Error

func (s SlogLogger) Error(msg string, args ...any)

func (SlogLogger) Info

func (s SlogLogger) Info(msg string, args ...any)

func (*SlogLogger) SetLevel

func (s *SlogLogger) SetLevel(level slog.Level)

func (SlogLogger) Warn

func (s SlogLogger) Warn(msg string, args ...any)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL