package
0.0.0-20240707112111-9cf347bf49e2
Repository: https://github.com/facebookincubator/go-belt.git
Documentation: pkg.go.dev
# Functions
EmitterFromPrintf provides a naive types.Emitter based on a given printf-function.
EmitterFromPrintfer provides a naive types.Emitter based on a given Printfer.
LogFieldsPreprocess checks logging level and calls PreHooks.
LogfPreprocess checks logging level and calls PreHooks.
LoggerFromAny makes the best effort to convert given logger of an arbitrary type to logger.Logger.
LoggerFromCompactLogger provides a generic logger.Logger based on a given types.CompactLogger.
LoggerFromEmitter provides a generic logger.Logger based on a given types.Emitter.
LoggerFromPrintf provides a generic naive logger.Logger based on a given printf-function.
LoggerFromPrintfer provides a generic naive logger.Logger based on a given Printfer.
LogPreprocess checks logging level and calls PreHooks.
ProcessHooks executes hooks and never returns false for Panic and Fatal logging levels.
# Structs
GenericLogger is a generic implementation of types.CompactLogger given Emitters.
GenericSugar is a generic implementation of sugar-methods for a given types.CompactLogger.
PrintferEmitter is an implementation of a Emitter given only a Printfer.
# Interfaces
CompactLogger is an optimized interface of an abstract generic structured logger.
Printfer is any object with a Printf method.