dlog_zap

package
v0.0.0-...-259758e Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package dlog_zap provides zap functionality for dlog.

https://go.uber.org/zap

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCannotSetZapLevel is the error which is used to panic if AtLevel is called.
	ErrCannotSetZapLevel = errors.New("cannot set zap level")
)

Functions

func NewLogger

func NewLogger(zapSugaredLogger *zap.SugaredLogger) dlog.Logger

NewLogger returns a new dlog.Logger for the given zap.SugaredLogger.

func Register

func Register()

Register registers the default zap Logger as the dlog Logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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