zap

package module
Version: v0.0.0-...-d803520 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(z *zap.Logger, opts ...Option) log.Handler

New ceate handler by zap logger

Types

type Levels

type Levels map[log.Level]zapcore.Level

Levels map levels

type Option

type Option func(Levels)

Option configure levels

func WithLevel

func WithLevel(level log.Level, zapLevel zapcore.Level) Option

WithLevel sete level logged message

Source Files

Jump to

Keyboard shortcuts

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