Skip to content

mobilusoss/go-yoctog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

too small log package wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages