logger

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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

type PanicLogger

type PanicLogger struct {
}

PanicLogger struct

func (*PanicLogger) LogPanic

func (l *PanicLogger) LogPanic(_ context.Context, value interface{})

LogPanic panic logger

Jump to

Keyboard shortcuts

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