Package zapx provides simple extensions to the base zap logger.
FieldSet allows logging of sets of fields as a log object TODO: not as performant as testdata.Obj for some reason, need to look into why
New creates a default zap logger based with basic defaults. If `logpath` is set, will use json encoder and write to the provided filepath. If `dev` is true, will use zap.DevelopmentConfig with colors enabled, though if logpath is set, the json encoder (without colors) will be enforced. If `dev` is false, will use zap.ProductionConfig.
WrapWithLevel is a zap.Option that spawns a child logger at the specified level
FieldSetMarshaller is the underlying type used by zapx.Fields()
FormatLogger exposes a common format-based logger interface
Option denotes an option for the zapx constructor
OnlyToFile removes all other outputs and only writes to file
WithDebug sets log level to debug if given bool is true
WithFields sets initial fields in the configuration
ZapFormatLogger implements FormatLogger using the given zap logger
NewFormatLogger instantiates a new default ZapFormatLogger
Debugf logs at the debug level
Errorf logs at the error level
Infof logs at the info level
Warningf logs at the warn level