package
0.0.0-20240707112111-9cf347bf49e2
Repository: https://github.com/facebookincubator/go-belt.git
Documentation: pkg.go.dev
# Functions
Default returns a logger.Logger using the default zap logger (see DefaultZapLogger).
LevelFromZap converts zap's logging level to logger.Level.
LevelToZap converts logger.Level to zap's logging level.
New returns a new instance of logger.Logger given a zap logger.
NewEmitter returns a new instance of Emitter.
# Constants
EntryPropertyIgnoreFields means the provided fields in types.Entry.Fields should be ignored by Emitter.LogEntry.
# Variables
DefaultZapLogger is the (overridable) function which returns a zap logger with the default configuration.
FieldNameTraceIDs is the field name used to store belt.TraceIDs.
# Structs
CompactLogger is an implementation of types.CompactLogger based on a zap logger.
Emitter is the implementation of types.Emitter based on a zap (non-sugared) logger.
# Type aliases
EntryProperty is a type of values which could be used in field types.Entry.Properties.