An open API service indexing awesome lists of open source software.

https://github.com/coinrust/log

Zap-based logging
https://github.com/coinrust/log

Last synced: 16 days ago
JSON representation

Zap-based logging

Awesome Lists containing this project

README

          

# log
Zap-based logging

## Example
```go
package main

import "github.com/coinrust/log"

func init() {
log.Init("./test.log",
log.DebugLevel,
log.SetCaller(true),
log.SetStdout(true))
}

func main() {
defer log.Sync()

log.Infof("%v", "hello")
}
```