log

package
v0.0.0-...-057e1e7 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFactory

func AddFactory(key string, factory func() *Logger)

func Remove

func Remove(key string)

Types

type Logger

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

func Default

func Default() *Logger

func Get

func Get(key string) *Logger

func NewLogger

func NewLogger(options Options) *Logger

func (Logger) Error

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

func (Logger) ErrorJson

func (l Logger) ErrorJson(msg string, attrs ...slog.Attr)

func (Logger) Info

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

func (Logger) InfoJson

func (l Logger) InfoJson(msg string, attrs ...slog.Attr)

type Options

type Options struct {
	Filename   string
	MaxBackup  int
	IsCompress bool
}

Jump to

Keyboard shortcuts

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