Categorygithub.com/gonuts/logger
modulepackage
0.0.0-20131130124048-193d8600fb59
Repository: https://github.com/gonuts/logger.git
Documentation: pkg.go.dev

# README

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")
}

# Functions

No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Type aliases

No description provided by the author