# Functions
Ctx returns a logger which will log contextual messages attached in ctx.
Debug logs a message at DebugLevel.
DefaultTimeEncoder serializes time.Time to a human-readable formatted string.
Error logs a message at ErrorLevel.
Fatal logs a message at FatalLevel.
FieldComponent returns a zap field with the component name.
FieldModule returns a zap field with the module name.
GetLevel gets the logging level.
Info logs a message at InfoLevel.
InitLogger initializes a zap logger.
InitLoggerWithWriteSyncer initializes a zap logger with specified write syncer.
InitTestLogger initializes a logger for unit tests.
L returns the global Logger, which can be reconfigured with ReplaceGlobals.
No description provided by the author
NewIntentContext creates a new context with intent information and returns it along with a span.
No description provided by the author
NewTextCore creates a Core that writes logs to a WriteSyncer.
No description provided by the author
NewTextEncoderByConfig creates a fast, low-allocation Text encoder with config.
Panic logs a message at PanicLevel.
R returns utils.ReconfigurableRateLimiter.
RatedDebug print logs at debug level it limit log print to avoid too many logs return true if log successfully Deprecated: Use Ctx(ctx).RatedDebug instead.
RatedInfo print logs at info level it limit log print to avoid too many logs return true if log successfully Deprecated: Use Ctx(ctx).RatedInfo instead.
RatedWarn print logs at warn level it limit log print to avoid too many logs return true if log successfully Deprecated: Use Ctx(ctx).RatedWarn instead.
ReplaceGlobals replaces the global Logger and SugaredLogger.
S returns the global SugaredLogger, which can be reconfigured with ReplaceGlobals.
SetLevel alters the logging level.
ShortCallerEncoder serializes a caller in file:line format.
Sync flushes any buffered log entries.
Warn logs a message at WarnLevel.
With creates a child logger and adds structured context to it.
WithDebugLevel returns context with a debug level enabled logger.
WithErrorLevel returns context with a error level enabled logger.
WithFatalLevel returns context with a fatal level enabled logger.
WithFields returns a context with fields attached.
WithInfoLevel returns context with a info level enabled logger.
WithModule adds given module field to the logger in ctx.
WithReqID adds given reqID field to the logger in ctx.
WithTraceID returns a context with trace_id attached.
WithWarnLevel returns context with a warning level enabled logger.
# Constants
No description provided by the author
No description provided by the author
# Structs
Binder is a embedding type to help access local logger.
Config serializes log related config in toml/json.
FileLogConfig serializes file log related config in toml/json.
MLogger is a wrapper type of zap.Logger.
ZapProperties records some information about zap.
# Interfaces
LoggerBinder is an interface to help set logger.
WithLogger is an interface to help access local logger.