https://github.com/arenadata/klog
Klog is a thin wrapper around go.uber.org/zap structured logger
https://github.com/arenadata/klog
Last synced: about 1 month ago
JSON representation
Klog is a thin wrapper around go.uber.org/zap structured logger
- Host: GitHub
- URL: https://github.com/arenadata/klog
- Owner: arenadata
- Created: 2022-07-04T14:07:11.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T10:26:42.000Z (over 3 years ago)
- Last Synced: 2025-12-27T01:41:34.402Z (6 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Klog
KLog is a thin wrapper around go.uber.org/zap logger.
It provide structured json logger with two additional fields - source and date.
## Quick Start
```go
klog.InitLogger("New Source")
defer klog.Sync()
klog.Info("First message")
```