logger

package
v0.0.0-...-f07e814 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogLvl

func SetLogLvl(lvl slog.Level)

SetLogLvl allows to set log lvl in runtime

Types

type Logger

type Logger struct {
	Logger *slog.Logger
	// contains filtered or unexported fields
}

func CreateLogger

func CreateLogger(cfg *config.Config) Logger

func GetLogger

func GetLogger() Logger

func (Logger) Debug

func (lgr Logger) Debug(msg, tp, method, after string)

func (Logger) Error

func (lgr Logger) Error(msg, tp, method, after string)

func (Logger) Info

func (lgr Logger) Info(msg, tp, method, after string)

func (Logger) Warn

func (lgr Logger) Warn(msg, tp, method, after string)

Jump to

Keyboard shortcuts

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