https://github.com/coinrust/log
Zap-based logging
https://github.com/coinrust/log
Last synced: 16 days ago
JSON representation
Zap-based logging
- Host: GitHub
- URL: https://github.com/coinrust/log
- Owner: coinrust
- License: mit
- Created: 2020-05-07T09:32:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T12:37:18.000Z (over 3 years ago)
- Last Synced: 2025-02-23T17:47:15.867Z (over 1 year ago)
- Language: Go
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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")
}
```