Back to godoc.org

Package logger

v0.0.0-...-791c31d
Latest Go to latest

The highest tagged major version is .

Published: Jun 11, 2019 | License: Apache-2.0 | Module: github.com/codexnetwork/trunk

Index

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier