log

package
v0.0.0-...-b9edb71 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 8 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func NewHandler

func NewHandler() slog.Handler

func Printf

func Printf(format string, args ...interface{})

func Println

func Println(args ...interface{})

func SetOutput

func SetOutput(w io.Writer)

func WithSystem

func WithSystem(log *slog.Logger, name string) *slog.Logger

func WriteToFile

func WriteToFile(path string) error

Types

type Logger

type Logger struct {
	*slog.Logger
}

func New

func New(name string) *Logger

func (*Logger) Print

func (l *Logger) Print(args ...interface{})

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...interface{})

func (*Logger) Println

func (l *Logger) Println(args ...interface{})

Jump to

Keyboard shortcuts

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