logger

package
v0.0.0-...-d25a9c8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: GPL-3.0, GPL-3.0-only Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type LogHook

type LogHook struct{}

func (LogHook) Run

func (h LogHook) Run(e *zerolog.Event, level zerolog.Level, msg string)

type LogMessage

type LogMessage struct {
	Level     zerolog.Level
	Message   string
	Timestamp time.Time
}

func GetLogs

func GetLogs() []LogMessage

Jump to

Keyboard shortcuts

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