logger

package
v0.0.0-...-1b5cee2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	ID        any       `json:"_id"        bson:"_id"        db:"id"`
	Level     string    `jon:"level"       bson:"level"      db:"level"`
	Msg       string    `json:"msg"        bson:"msg"        db:"msg"`
	CreatedAt time.Time `json:"created_at" bson:"created_at" db:"created_at"`
}

Log is log marshaled and written in to the io.Writer of the helper implementing Logger abstraction.

type Logger

type Logger interface {
	Debug(msg string)
	Info(msg string)
	Warn(msg string)
	Error(msg string)
	Fatal(msg string)
}

Logger provides logging methods for debug, info, warning, error and fatal.

Jump to

Keyboard shortcuts

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