# Packages
No description provided by the author
Package distribution implements a logger which compatible to logrus/std log/prometheus.
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
CheckIntLevel used for other log wrapper such as klog which return if logging a message at the specified level is enabled.
Debug method output debug level log.
Debugf method output debug level log.
Debugw method output debug level log.
Error method output error level log.
Errorf method output error level log.
Errorw method output error level log.
Every constructs a field that carries a pretty string.
F method output with specified context value.
Fatal method output fatal level log.
Fatalf method output fatal level log.
Fatalw method output Fatalw level log.
Flush calls the underlying Core's Sync method, flushing any buffered log entries.
FromContext returns the value of the log key on the ctx.
Info method output info level log.
Infof method output info level log.
Infow method output info level log.
Init initializes logger with specified options.
L method output with specified context value.
New create logger by opts which can custmoized by command arguments.
NewLogger creates a new logr.Logger using the given Zap Logger to log.
NewOptions creates an Options object with default parameters.
Panic method output panic level log and shutdown application.
Panicf method output panic level log and shutdown application.
Panicw method output panic level log.
Pretty log data with reflect type.
StdErrLogger returns logger of standard library which writes to supplied zap logger at error level.
StdInfoLogger returns logger of standard library which writes to supplied zap logger at info level.
SugaredLogger returns global sugared logger.
V return a leveled InfoLogger.
Warn method output warning level log.
Warnf method output warning level log.
Warnw method output warning level log.
WithContext returns a copy of context in which the log value is set.
WithFieldPair returns a copy of context which inject key and value to fieldCtx.
这里需要特别注意context的值传递和值获取机制.
WithName adds a new path segment to the logger's name.
WithValues creates a child logger and adds adds Zap fields to it.
WithValuesM creates a child logger and adds adds Zap fields to it.
ZapLogger used for other log wrapper such as klog.
# Variables
Any use reflect for much easier to log zap, but with performance cost see https://github.com/uber-go/zap/issues/405.
Alias for zap type functions.
base64编码.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
DebugLevel logs are typically voluminous, and are usually disabled in production.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
ErrorLevel logs are high-priority.
Alias for zap type functions.
FatalLevel logs a message, then calls os.Exit(1).
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
InfoLevel is the default logging priority.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
PanicLevel logs a message, then panics.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
Alias for zap type functions.
WarnLevel logs are more important than Info, but don't need individual human review.
# Structs
No description provided by the author
No description provided by the author
Options contains configuration items related to log.
# Interfaces
InfoLogger represents the ability to log non-error messages, at a particular verbosity.
Logger represents the ability to log messages, both errors and not.
# Type aliases
No description provided by the author
Field is an alias for the field structure in the underlying log frame.
Level is an alias for the level structure in the underlying log frame.