logger

package
v1.6.16 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitZap

func InitZap()

InitZap logger

func Log

func Log(level zapcore.Level, message string, context string, scope string)

Log func

func LogE

func LogE(message string)

LogE error

func LogEf

func LogEf(format string, i ...interface{})

LogEf error with format

func LogGreen

func LogGreen(str string)

LogGreen log with green color

func LogI

func LogI(message string)

LogI info

func LogIf

func LogIf(format string, i ...interface{})

LogIf info with format

func LogRed

func LogRed(str string)

LogRed log with red color

func LogWithDefer

func LogWithDefer(str string) (deferFunc func())

LogWithDefer return defer func for status

func LogYellow

func LogYellow(str string)

LogYellow log with yellow color

Types

This section is empty.

Jump to

Keyboard shortcuts

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