Documentation ¶
Overview ¶
Package logrus provides a logrus Formatter for events. To use for the global logger:
logrus.SetFormatter(elogrus.NewFormatter(exporter)) logrus.SetOutput(io.Discard)
and for a Logger instance:
logger.SetFormatter(elogrus.NewFormatter(exporter)) logger.SetOutput(io.Discard)
If you call elogging.SetExporter, then you can pass nil for the exporter above and it will use the global one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFormatter ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.