package
1.1.7
Repository: https://github.com/melonwool/go-zero.git
Documentation: pkg.go.dev

# Functions

Alert alerts v in alert level, and the message is written to error log.
Close closes the logging.
CollectSysLog redirects system log into logx info.
DefaultRotateRule is a default log rotating rule, currently DailyRotateRule.
Disable disables the logging.
Error writes v into error log.
ErrorCaller writes v with context into error log.
ErrorCallerf writes v with context in format into error log.
Errorf writes v with format into error log.
ErrorStack writes v along with call stack into error log.
ErrorStackf writes v along with call stack in format into error log.
Info writes v into access log.
Infof writes v with format into access log.
Must checks if err is nil, otherwise logs the err and exits.
MustSetup sets up logging with given config c.
NewLessLogger returns a LessLogger.
NewLogger returns a RotateLogger with given filename and rule, etc.
SetLevel sets the logging level.
SetUp sets up the logx.
Severe writes v into severe log.
Severef writes v with format into severe log.
Slow writes v into slow log.
Slowf writes v with format into slow log.
Stat writes v into stat log.
Statf writes v with format into stat log.
WithContext sets ctx to log, for keeping tracing information.
WithCooldownMillis customizes logging on writing call stack interval.
WithDuration returns a Logger which logs the given duration.
WithGzip customizes logging to automatically gzip the log files.
WithKeepDays customizes logging to keep logs with days.

# Constants

ErrorLevel includes errors, slows, stacks.
InfoLevel logs everything.
SevereLevel only log severe messages.

# Variables

ErrLogFileClosed is an error that indicates the log file is already closed.
ErrLogNotInitialized is an error that log is not initialized.
ErrLogPathNotSet is an error that indicates the log path is not set.
ErrLogServiceNameNotSet is an error that indicates that the service name is not set.

# Structs

No description provided by the author
A LessLogger is a logger that control to log once during the given duration.
A LogConf is a logging config.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author