OH MY LOG
Shared logger for all my personal projects, based on the uber/zap official library.
Badges
Basic usage
func main() {
// Setup custom configuration
log, _ := logger.NewLogger(&logger.OhMyLogOptions{
Encoding: "console",
LogLevel: "debug",
Colored: true,
})
log.Info("Hello World!")
}
Or take a look into examples
To do
- Enable log output file (logs.log) in format json
- Enable both, console and log file mode
- Customize more the log, but by the moment is enough for my projects.
Credits
Contribution
Pull requests are welcome! Any code refactoring, improvement, implementation...
LICENSE
LICENSE