Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.55 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.55 KB

go-yoctog

FOSSA Status Go Report codebeat badge codecov Documentation

too small log package wrapper

log.Llongfile フラグ立てると calldepth が 2 だから迂闊に log パッケージをラップ出来ないので誕生

Usage

$ go get -u github.com/mobilusoss/go-yoctog

or

$ dep ensure -add github.com/mobilusoss/go-yoctog

Example

log.SetFlags(log.Llongfile)
// Default log level are debug
//yoctog.SetLogLevel(yoctog.LevelDebug)
yoctog.Info("こんにちわーるど!")
2018/12/04 14:51:58.718603 /path/to/main.go:52: [INFO] こんにちわーるど!

see example ( example/main.go ) file.

License

FOSSA Status