zap

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package zap manages logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) *zap.Logger

FromContext get zap logger from context

func NewZap

func NewZap(level zap.AtomicLevel) (*zap.Logger, error)

NewZap initialize zap logger

func WithContext

func WithContext(ctx context.Context, logger *zap.Logger) context.Context

WithContext set zap logger to context

Types

This section is empty.

Jump to

Keyboard shortcuts

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