package
0.2.0
Repository: https://github.com/apecloud/datasafed.git
Documentation: pkg.go.dev

# Functions

Attach attaches logging flags to the provided application.
Broadcast is a logger that broadcasts each log message to multiple loggers.
Clock is an implementation of zapcore.Clock that uses clock.Now().
Module returns an function that returns a logger for a given module when provided with a context.
NewStdConsoleEncoder returns standardized console encoder which is optimized for performance.
PreciseTimeEncoder encodes the time as RFC3389 with 6 digits of sub-second precision.
TimezoneAdjust returns zapcore.TimeEncoder that adjusts the time to either UTC or local time before logging.
ToWriter returns LoggerFactory that uses given writer for log output (unadorned).
WithAdditionalLogger returns a context where all logging is emitted the original output plus the provided logger factory.
WithLogger returns a derived context with associated logger.

# Constants

PreciseLayout is a variant of time.RFC3339Nano but with microsecond precision and trailing zeroes.

# Variables

No description provided by the author
NullLogger represents a singleton logger that discards all output.

# Structs

StdConsoleEncoderConfig provides configurationfor NewStdConsoleEncoder.

# Type aliases

LoggerFactory retrieves a named logger for a given module.