logger

package
v0.0.0-...-f25b206 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(mode Mode, isProduction bool) *logger

Types

type Level

type Level string
const (
	DEBUG Level = "Debug"
	INFO  Level = "Info"
	WARN  Level = "Warn"
	ERROR Level = "Error"
)

type Logger

type Logger interface {
	Log(level Level, msg string)
}

type Mode

type Mode int
const (
	File Mode = 1 + iota
	Console
)

Jump to

Keyboard shortcuts

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