logger

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Unlicense Imports: 4 Imported by: 0

README

logger wrapper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func New

func New(devMode bool) *Logger

New конфигурация логгера Для конфигурации вывода slog при DEV_MODE=1 используется пакет ... https://github.com/lmittmann/tint

func (*Logger) Debug

func (l *Logger) Debug(message string, args ...any)

func (*Logger) Error

func (l *Logger) Error(message string, args ...any)

func (*Logger) Info

func (l *Logger) Info(message string, args ...any)

func (*Logger) Warn

func (l *Logger) Warn(message string, args ...any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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