logger

package
v0.0.0-...-791c31d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, params ...interface{})

Debugf formats message according to format specifier and writes to default logger with log level = Debug.

func EnableLogging

func EnableLogging(production bool)

EnableLogging Enable logger for force block ev

func Errorf

func Errorf(format string, params ...interface{})

Errorf formats message according to format specifier and writes to default logger with log level = Error

func Infof

func Infof(format string, params ...interface{})

Infof formats message according to format specifier and writes to default logger with log level = Info.

func LogError

func LogError(msg string, err error)

LogError log error

func Logger

func Logger() *zap.Logger

Logger get logger

func Sugar

func Sugar() *zap.SugaredLogger

Sugar get Sugar logger

func Warnf

func Warnf(format string, params ...interface{})

Warnf formats message according to format specifier and writes to default logger with log level = Warn

Types

This section is empty.

Jump to

Keyboard shortcuts

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