package
0.0.0-20221123113150-1569ab3e9308
Repository: https://github.com/dwhengr/aurora.git
Documentation: pkg.go.dev
# Functions
AddCallerSkip increases the number of callers skipped by caller annotation (as enabled by the AddCaller option).
AddStacktrace configures the Logger to record a stack trace for all messages at or above a given level.
Fields adds fields to the Logger.
GetLogLevelFromEnv get cabin log level from os.Getenv.
New create a new AdaptedLogger
The cfg is optional, we use cfg.Level only.
NewDefault create a defult Logger.
NewFromLogr new Logger from logr.Logger.
WithCaller configures the Logger to annotate each message with the filename, line number, and function name of zap's caller, or not, depending on the value of enabled.
WithClock specifies the clock used by the logger to determine the current time for logged entries.
ZapField return a zap field key-value pair.
# Constants
DebugLevel logs are typically voluminous, and are usually disabled in production.
DefaultLogLevel is the *number* that control the level of Logger with highest priority.
DPanicLevel logs are particularly important errors.
EnvLogLevel is the environment variable to control logger.LogLevel eg: "set CABIN_LOG_LEVEL=0".
ErrorLevel logs are high-priority.
FatalLevel logs a message, then calls os.Exit(1).
InfoLevel is the default logging priority.
PanicLevel logs a message, then panics.
WarnLevel logs are more important than Info, but don't need individual human review.
# Variables
Logger is the default logger object.
# Interfaces
AdaptedLogger is the interface that adapt zap.logger.
# Type aliases
Clock is a source of time for logged entries.
Field is an alias for Field.
A Level is a logging priority.
LevelEnabler decides whether a given logging level is enabled when logging a message.
An Option configures a Logger.