loggers

package
v0.1.1-0...-bf813a4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: OSL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLogger

func BuildLogger(level zapcore.Level) error

BuildLogger initializes new global logger with the given logger level

func Debug

func Debug(ctx context.Context, msg string, body Field, customs ...Field)

Debug is a debug level of logger

func Error

func Error(ctx context.Context, msg string, body Field, customs ...Field)

Error is a error level of logger

func Fatal

func Fatal(ctx context.Context, msg string, body Field, customs ...Field)

Fatal is a fatal level of logger

func GetLoggerLevel

func GetLoggerLevel() string

GetLoggerLevel of the current logger configuration

func Info

func Info(ctx context.Context, msg string, body Field, customs ...Field)

Info is a info level of logger

func Panic

func Panic(ctx context.Context, msg string, body Field, customs ...Field)

Panic is a panic level of logger

func SetLoggerLevel

func SetLoggerLevel(level zapcore.Level)

SetLoggerLevel set global logger level

func Warn

func Warn(ctx context.Context, msg string, body Field, customs ...Field)

Warn is a warning level of logger

Types

type Field

type Field map[string]interface{}

Field in logger

Jump to

Keyboard shortcuts

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