logger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close

func Debug

func Debug(message string, payload Payload)

Debug

func Error

func Error(message string, payload Payload)

Error

func Info

func Info(message string, payload Payload)

Info

func Init

func Init(name string, level Level) error

Init

func Warn

func Warn(message string, payload Payload)

Warn

Types

type Level

type Level int

A Level is the importance or severity of a log event. The higher the level, the more important or severe the event.

const (
	LevelDebug Level = iota
	LevelInfo
	LevelWarn
	LevelError
)

type Payload

type Payload = map[string]string

Payload

Jump to

Keyboard shortcuts

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