ohmylog

module
v0.0.0-...-9d047d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: Apache-2.0

README

logo

OH MY LOG

Shared logger for all my personal projects, based on the uber/zap official library.

Go report card GitHub code size in bytes GitHub go.mod Go version

Badges

Linter Status License

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

example

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

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL