Categorygithub.com/structy/log
repositorypackage
0.0.0-20220126205329-1f766c8d0b3c
Repository: https://github.com/structy/log.git
Documentation: pkg.go.dev

# Packages

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

# README

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