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.

Source Files