utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugRead

func DebugRead(key string, i int, err error, data []byte)

func DebugWrite

func DebugWrite(key string, i int, err error, data []byte)

func LogLevel

func LogLevel(l slog.Level)

func LogNewOutput

func LogNewOutput(w io.Writer)

Types

type Sloggers

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

func Log

func Log(key string) *Sloggers

func (*Sloggers) Debug

func (s *Sloggers) Debug(format string, args ...any)

func (*Sloggers) Error

func (s *Sloggers) Error(format string, args ...any)

func (*Sloggers) Info

func (s *Sloggers) Info(format string, args ...any)

func (*Sloggers) Log

func (s *Sloggers) Log(ctx context.Context, level slog.Level, format string, args ...any)

func (*Sloggers) Warn

func (s *Sloggers) Warn(format string, args ...any)

Jump to

Keyboard shortcuts

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