log

package
v0.0.0-...-5ed304f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	MainLog   zerolog.Logger
	App       string
	Env       string
	Region    string
	LabelKeys []string
	ExitChan  chan os.Signal
	Telegram  *telegram.Client
}

func New

func New(
	args map[string]string,
	application string,
	telegramClient *telegram.Client,
) (*Logger, error)

func (*Logger) Debug

func (l *Logger) Debug(message string, labels ...string)

func (*Logger) Error

func (l *Logger) Error(err error, labels ...string)

func (*Logger) Fatal

func (l *Logger) Fatal(err error, labels ...string)

func (*Logger) Info

func (l *Logger) Info(message string, labels ...string)

func (*Logger) NotifyFarm

func (l *Logger) NotifyFarm(title, body string)

func (*Logger) Panic

func (l *Logger) Panic(r interface{}, trace string, labels ...string)

func (*Logger) RecoverPanic

func (l *Logger) RecoverPanic()

Jump to

Keyboard shortcuts

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