zbark

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package zbark integrates Bark with Zap (go.uber.org/zap).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Barkify

func Barkify(l *zap.Logger) bark.Logger

Barkify wraps a zap logger in a compatibility layer so that it satisfies the bark.Logger interface. Note that the wrapper always returns nil from the Fields method, since zap doesn't support this functionality.

func Zapify

func Zapify(l bark.Logger) *zap.Logger

Zapify wraps a bark logger in a compatibility layer to produce a *zap.Logger. Note that the wrapper always treats zap's DPanicLevel as an error (even in development).

Types

This section is empty.

Jump to

Keyboard shortcuts

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