package
0.0.0-20230710142318-f8a288cd3046
Repository: https://github.com/packethost/pkg.git
Documentation: pkg.go.dev

# Functions

ContextWithLogger returns a copy of parent in which the logger is embedded.
GetLogger returns the logger associated with this context, or no-op logger if no logger is embedded with key.
Init initializes the logging system and sets the "service" key to the provided argument.
ProtoAsJSON performs a type erasure of proto.Message to be embedded into the log fields.
Test returns a logger that does not log to rollbar and can be used with testing.TB to only log on test failure or run with -v.

# Structs

Logger is a wrapper around zap.SugaredLogger.