zaputil

package module
v0.0.0-...-ef53049 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: LGPL-3.0 Imports: 6 Imported by: 0

README

zaputil

Utilities related to the zap logging package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error) zapcore.Field

Error returns a field suitable for logging an error to a zap Logger along with its error trace. If err is nil, the field is a no-op. This is different from zap.Error because the logged error also includes error traceback information.

func NewLoggoWriter

func NewLoggoWriter(logger *zap.Logger) loggo.Writer

NewLoggoWriter returns a loggo.Writer that writes to the given zap logger.

Types

This section is empty.

Directories

Path Synopsis
Package zapctx provides support for associating zap loggers (see github.com/uber-go/zap) with contexts.
Package zapctx provides support for associating zap loggers (see github.com/uber-go/zap) with contexts.

Jump to

Keyboard shortcuts

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