Skip to content

gonuts/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

logger

logger is a simple level-logger.

Installation

$ go get github.com/gonuts/logger

Example

package main

import (
	"github.com/gonuts/logger"
)

func main() {
	msg := logger.New("foo")
	msg.SetLevel(logger.DEBUG)
	msg.Infof("an info message [%s]\n", "hello")
	msg.Debugf("a debug message [%s]\n", "hallo")
	msg.Errorf("an error message [%s]\n", "hello")
}

Releases

No releases published

Packages

No packages published

Languages