# README
logging
Unified logging wrapping uber.zap
# Packages
No description provided by the author
# Functions
CurrentConfig returns pointer to stored config.
Init do logging subsystem initialization.
KeysCtx returns logging keys from context using all extractors wet with WithContextExtractors.
MustInit do logging subsystem initialisation.
NewConfig creates new logging configuration with defaults set.
NewLogger initializes a new logger instance.
NewLoggerCtx initializes a new logger instance doing flushing any buffered log entries on context done.
NewNamedLogger initializes a new named logger.
NewNamedLoggerCtx initializes a new named provider instance providing flushing buffered log entryTable on context done.
NewSyslogWriter returns a new conn sink for syslog.
Output returns io.Writer to use in Backend instances or error if output open/create failed.
WithContextExtractors adds context value to logging field extraction functions to logging config.
WithFormat adds specified logging output format to configuration.
WithLevel adds specified level to configuration.
No description provided by the author
# Constants
DefaultFormat defines default formatting if omitted.
DefaultLevel defines default level if omitted.
DefaultOutput defines default output if omitted.
FormatJSON defines constant value for format logging lines as JSON.
FormatText defines constant value for format logging lines as text.
KeyCaller defines logging key for function caller registering.
KeyLevel defines logging key for message logging level registering.
KeyLogger defines logging key for provider, module or subsystem name registering.
KeyMessage defines logging key for registering message itself.
KeyStackTrace defines logging key for provider name registering.
KeyTimestamp defines logging key for timestamp registering.
LevelDebug defines constant logging level for detailed logging in debug env.
LevelError defines constant logging level for only errors reporting.
LevelFatal defines constant logging level for application panic reporting.
LevelInfo defines constant logging level for info, warnings and errors reporting.
LevelPanic defines constant logging level for application panic reporting.
LevelTrace defines constant logging level for most verbose logging in debug env.
LevelWarn defines constant logging level for warnings and errors reporting only.
StdErr is a standard way to disable file logging.
StdOut is a standard way to disable file logging.
SysLog is a predefined output constant to route logging messages into syslog.
TimestampFormatConsole defines console timestamp format.
TimestampFormatJSON defines JSON timestamp format.
# Structs
Backend implements logging.Backend using zap.Logger.
Config type implements parameters storage for logging initialization.
Default logger provides logging methods with default setting in case customisation is not required.
LockedWriter implements simple write-locked operations and implements io.Writer, io.Closer and Flushed interfaces.
SyslogWriter describes connection sink for syslog.
WritersRegistry implements simple map-like storage of stream writers.
# Interfaces
Logger defines default set of logging methods should provided by any logging backend.
The Syncer interface indicates implementation could flush buffered data to the underlying writer.
A WriteSyncer is an io.Writer that can also flush any buffered data.
# Type aliases
ContextExtractorFunc is a function returning field name.
Format defines output format.
Key defines logging key name string interface.
Keys simply wraps map[Key]interface{} to use in Logger.WithKeys.
Level is a type for logging levels.
No description provided by the author
Target identifies logging output target.
WriterName defines simple string type to prevent coding errors dealing with WritersRegistry.