package
0.0.0-20210724093922-c95b7eeff255
Repository: https://github.com/frankhang/util.git
Documentation: pkg.go.dev
# Functions
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.
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.
L returns the global Logger, which can be reconfigured with ReplaceGlobals.
NewTextCore creates a Core that writes logs to a WriteSyncer.
NewTextEncoder creates a fast, low-allocation Text encoder.
Panic logs a message at PanicLevel.
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.
# Variables
Get retrieves a buffer from the pool, creating one if necessary.
# Structs
Config serializes log related config in toml/json.
FileLogConfig serializes file log related config in toml/json.
ZapProperties records some information about zap.