# Functions
CondUint32 constructs a field with the given key and value conditionally.
IsLevelLegal checks whether the level is legal.
LogPanic logs the panic reason and stack, then exit the process.
RedactBytes receives []byte argument and return omitted information if redact log enabled.
RedactString receives string argument and return omitted information if redact log enabled.
RedactStringer receives stringer argument and return omitted information if redact log enabled.
SetupLogger setup the logger.
StringToZapLogLevel translates log level string to log level.
ZapRedactByteString receives []byte argument and return omitted information zap.Field if redact log enabled.
ZapRedactString receives string argument and return omitted information in zap.Field if redact log enabled.
ZapRedactStringer receives stringer argument and return omitted information in zap.Field if redact log enabled.
# Constants
RedactInfoLogMarker means log redaction is enabled, and will use single guillemets ‹› to enclose the sensitive information.
RedactInfoLogOFF means log redaction is disabled.
RedactInfoLogON means log redaction is enabled, and will replace the sensitive information with "?".
# Structs
FileLogConfig serializes file log related config in toml/json.
LogConfig serializes log related config in toml/json.
# Type aliases
RedactInfoLogType is the behavior of redacting sensitive information in logs.