log

package
v2.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func DefaultHandler

func DefaultHandler(level slog.Level) slog.Handler

func Error

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

func FileWriter

func FileWriter(outputFile string) io.WriteCloser

func Info

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

func Init

func Init(outputFile, level string)

func JSONHandler

func JSONHandler(w io.Writer, level slog.Level) slog.Handler

func Logger

func Logger() *slog.Logger

func SetLogger

func SetLogger(l *slog.Logger)

func TextHandler

func TextHandler(w io.Writer, level slog.Level) slog.Handler

func Warn

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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