yulefox / log

Another logger for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

log

Build Status codecov Go Report Card Sourcegraph Open Source Helpers

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

About

Another logger for Go.

License:MIT License


Languages

Language:Go 95.2%Language:Makefile 4.8%