Documentation
¶
Overview ¶
logging is a wrapper around rs/zerolog making it easier to create & manage
Index ¶
Constants ¶
View Source
const DefaultLevel = "info"
DefaultLevel is the default log level
Variables ¶
View Source
var ( // UnknownTypeCause represents an error when an unknown logger type is encountered UnknownTypeCause = errors.NewCause(errors.BadRequestCategory, "unknown_logger") // UnknownLevelCause represents an error when an unknown log level is provided UnknownLevelCause = errors.NewCause(errors.BadRequestCategory, "unknown_log_level") )
Functions ¶
Types ¶
type Type ¶
type Type string
Type represents a type of logger
var ( // PrettyType represents a logger that prints nicely to stdout PrettyType Type = "pretty" // PrettyNoColorType is same as PrettyType but with no color PrettyNoColorType Type = "pretty_no_color" // DiscardType represents a logger that does not log anything DiscardType Type = "discard" // JSONType represents a logger that emits logs as json to stderr JSONType Type = "json" )
Click to show internal directories.
Click to hide internal directories.