Skip to content

yulefox/log

Repository files navigation

log

Build Status codecov Go Report Card

GoDoc Release

Another logger for Go.

Install

go get github.com/yulefox/log

Usage

package main

import "github.com/yulefox/log"

func main() {
	log.Info("Here is a simple example.")
	log.Debug("This is a debug message.")
	log.Info("Hello, %s!", "world")
	log.Error("This is an error with caller stack.")
	log.Panic("This is a panic with caller stack.")
	//log.Fatal("This should not be logged.")
	//log.Info("This should not be logged.")
}

License

MIT