logger

package
v0.0.0-...-6de7cd6 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, message string, context map[string]interface{})

Debug debug log.

func Emergency

func Emergency(ctx context.Context, message string, context map[string]interface{})

Emergency 致命错误或panic捕获,程序继续运行不会崩溃

func Error

func Error(ctx context.Context, message string, context map[string]interface{})

Error error log.

func Fatal

func Fatal(ctx context.Context, message string, context map[string]interface{})

Fatal 抛出致命操作,程序退出

func Info

func Info(ctx context.Context, message string, context map[string]interface{})

Info info log.

func Recover

func Recover(ctx context.Context)

Recover 异常捕获处理

func Warn

func Warn(ctx context.Context, message string, context map[string]interface{})

Warn warn log.

Types

This section is empty.

Jump to

Keyboard shortcuts

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