Skip to content

Extension of Go Lang logger that provides different levels of verbosity (DEBUG, WARN).

Notifications You must be signed in to change notification settings

codeforsystemsbiology/verboselogger.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Extension of Go Lang logger that provides different levels of verbosity (DEBUG, WARN).

Install by running:

    goinstall github.com/codeforsystemsbiology.org/verboselogger.go

Demo Code:

    import (
        "github.com/codeforsystemsbiology/verboselogger.go"
    )

    func main() {
        logger := NewVerboseLogger(true, nil, "")

        logger.Debug("message 1: %v", "hooray")
        logger.Debug("message 2")

        err := os.NewError("test error")
        logger.Warn(err)
    }

About

Extension of Go Lang logger that provides different levels of verbosity (DEBUG, WARN).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages