logger

package module
v0.0.0-...-9c6d12b Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoglvlDebug   loglvl = 0
	LoglvlInfo    loglvl = 1
	LoglvlSpecial loglvl = 2
	LoglvlErr     loglvl = 3
	LoglvlFatal   loglvl = 4
)

Variables

View Source
var LOG_LVL loglvl = LoglvlDebug

Logger Settings

View Source
var SLUG_END string = "]"
View Source
var SLUG_START string = "["
View Source
var TIME_FORMAT string = time.RFC3339

Functions

func Debug

func Debug(format string, a ...interface{})

func DebugWithValues

func DebugWithValues(values map[string]interface{}, format string, a ...interface{})

func Err

func Err(format string, a ...interface{})

func ErrWithError

func ErrWithError(err error, format string, a ...interface{})

func ErrWithValues

func ErrWithValues(values map[string]interface{}, format string, a ...interface{})

func Fatal

func Fatal(code int, format string, a ...interface{})

func FatalWithError

func FatalWithError(code int, err error, format string, a ...interface{})

func Info

func Info(format string, a ...interface{})

func InfoWithValues

func InfoWithValues(values map[string]interface{}, format string, a ...interface{})

func SeeColors

func SeeColors()

func SetSpecialSlug

func SetSpecialSlug(slug string)

func Special

func Special(format string, a ...interface{})

func SpecialWithValues

func SpecialWithValues(values map[string]interface{}, format string, a ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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