package
0.0.4
Repository: https://github.com/ytsaurus/ytsaurus.git
Documentation: pkg.go.dev

# Packages

Package asynczap implements asynchronous core for zap.
No description provided by the author
No description provided by the author

# Functions

CLIConfig returns zap config for cli logging (custom cli encoder).
ConsoleConfig returns zap config for logging to console (zap's console encoder).
Context creates a log field from context - all fields bound with ctxlog.WithFields will be added.
JSONConfig returns zap config for structured logging (zap's json encoder).
KVConfig returns zap config for logging to kv (custom kv encoder).
LazyCall creates a log field with lazy function.
Must constructs zap-based logger from provided config and panics on error.
New constructs zap-based logger from provided config.
NewCustomDeployLogger constructs new logger by config cfg.
NewDeployConfig returns default configuration (with no sampling).
NewDeployEncoderConfig returns an opinionated EncoderConfig for deploy environment.
NewDeployLogger constructs fully-fledged Deploy compatible logger based on predefined config.
NewProductionDeployConfig returns configuration, suitable for production use.
Same as NewDeployLogger, but with sampling.
NewQloudLogger constructs fully-fledged Qloud compatible logger based on predefined config.
NewWithCore constructs zap-based logger from provided core.
SetOutputPaths sets OutputPaths (stdout by default).
StandardConfig returns default zap config with specified encoding and level.
TSKVConfig returns zap config for logging to tskv (custom tskv encoder).
UnzapifyLevel turns zap log level to interface log level.
WithDevelopment sets Development option of zap.Config.
WithLevel sets level of logging.
WithSampling sets sampling settings initial and thereafter.
ZapifyLevel turns interface log level to zap log level.

# Structs

Logger implements log.Logger interface.