Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 693 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 693 Bytes

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