zap

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package `zap` wraps Zap logging.

Zap has been chosen after a quick review of the logging solutions listed on Awesome Go. Zap was among the top 5 on GitHub. Its performance is impressive. Its API is similar to the stdlib `log` package. It also has a convenient structured logging api of `Levelw(msg, kv ...)` functions, which we usually use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger = zap.SugaredLogger

We use the convenience sugared logger `Levelw(msg, kv...)` functions.

func NewDevelopment

func NewDevelopment() (*Logger, error)

func NewProduction

func NewProduction() (*Logger, error)

Jump to

Keyboard shortcuts

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