Skip to content
A simple to use log system, minimalist but with features for debugging and differentiation of messages
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
adapters fix format Dec 4, 2017
examples
.codeclimate.yml
.gitignore
.travis.yml
LICENSE
README.md
cover.sh
log.go
log_test.go

README.md

nuveo/log

Build Status A simple to use log system, minimalist but with features for debugging and differentiation of messages

Example

Example

package main

import (
    "fmt"
    "github.com/nuveo/log"
)

func main() {
    log.Debugln("Debug message")

    log.DebugMode = false
    log.Debugln("Debug message that will be hidden")

    log.Println("Info message")
    log.Warningln("Warning message")
    log.Errorln("Error message")
    log.Fatal("Fatal error message")
    fmt.Println("I will never be printed because of Fatal()")
}
You can’t perform that action at this time.