log

package
v9.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func D

func D(logger zap.Logger, message string, callback ...func(l CM))

D is a debug logger

func E

func E(logger zap.Logger, message string, callback ...func(l CM))

E is a error logger

func I

func I(logger zap.Logger, message string, callback ...func(l CM))

I is a info logger

func P

func P(logger zap.Logger, message string, callback ...func(l CM))

P is a panic logger

func W

func W(logger zap.Logger, message string, callback ...func(l CM))

W is a warn logger

Types

type CM

type CM interface {
	Write(fields ...zap.Field)
	OK() bool
}

CM is a Checked Message like

Jump to

Keyboard shortcuts

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