go-zap-utils

command module
v0.0.0-...-7bedab2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 2 Imported by: 0

README

zap-log

A library to provide a quick and easy integration with Uber's Zap logger.

In order to integrate Uber's Zap logging library into your project, in your main package import this library anonynously, and then make sure that the logger is sync'ed when the application terminates, like this:


import (
    // ...
    _ "github.com/dihedron/go-zap-utils/log"
)

func main() {
    defer zap.L().Sync()

    // your code goes here
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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