Documentation
¶
Overview ¶
Package loggerx provides helper functions and extensions responsible for logging. The 'x' in the package name stand for 'extension'. It is added to reduce possible conflicts with other packages named 'logger'.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsHCLog ¶
func AsHCLog(logger logrus.FieldLogger, name string) hclog.Logger
AsHCLog return logger that implements the hclog interface, and wraps it around a Logrus entry.
func ExitOnError ¶ added in v1.2.0
ExitOnError exits an app with a given error.
func New ¶
func New(cfg config.Logger) logrus.FieldLogger
New returns a new logger based on a given configuration.
func NewNoop ¶
func NewNoop() logrus.FieldLogger
NewNoop returns a logger that discards all logged messages. It's suitable for unit-tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.