package
0.0.0-20240201022239-0ae679bc1fb1
Repository: https://github.com/peakchen/go-zero.git
Documentation: pkg.go.dev
# Functions
AddGlobalFields adds global fields.
Alert alerts v in alert level, and the message is written to error log.
Close closes the logging.
Debug writes v into access log.
Debugf writes v with format into access log.
Debugv writes v into access log with json content.
Debugw writes msg along with fields into access log.
Error writes v into error log.
Errorf writes v with format into error log.
Errorv writes v into error log with json content.
Errorw writes msg along with fields into error log.
Field returns a LogField for the given key and value.
Info writes v into access log.
Infof writes v with format into access log.
Infov writes v into access log with json content.
Infow writes msg along with fields into access log.
Must checks if err is nil, otherwise logs the error and exits.
MustSetup sets up logging with given config c.
SetLevel sets the logging level.
SetUp sets up the logx.
Slow writes v into slow log.
Slowf writes v with format into slow log.
Slowv writes v into slow log with json content.
Sloww writes msg along with fields into slow log.