• Stars
    star
    5
  • Rank 2,861,937 (Top 57 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 3 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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