Skip to content

jurka/llogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llogger

Leveled logger wrapper for native log package

Why?

The main idea is to add Levels to log operations and ability to show logs from exact level or above.

Leveled logger (llogger) library allow you to add necessary logging everywhere in your code with related level. There are several levels: FATAL, ERROR, WARN, INFO, DEBUG.

Usage

import "gopkg.in/jurka/llogger.v1"

log := llogging.NewStdLogger(llogging.INFO, "")

x := 1
log.Info("This is x =", x)

log.Debug("Cheking for x != 10")
if x != 10{
	log.Error("X has wrong value!")
}

About

Level logger wrapper for native log package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages