logger

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 6 Imported by: 0

README

logger

Go logger with logLvl and logFile

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LvlDebug   logLvl = "DEBUG"
	LvlInfo    logLvl = "INFO"
	LvlWarning logLvl = "WARNING"
	LvlError   logLvl = "ERROR"
)
View Source
var (
	Debug   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger

	FileTimeFormat = "2006-01-02"
)
View Source
var CurrentLogLvl logLvl

CurrentLogLvl use this to set your current log lvl

Functions

func Default

func Default(loggingPath string, toStdOut bool)

func New

func New(debugHandle, infoHandle, warningHandle, errorHandle io.Writer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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