Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupLogExporter ¶
func SetupLogExporter(logger *logrus.Logger, sender castai.CastAIClient)
Types ¶
type LogExporter ¶
type LogExporter struct {
// contains filtered or unexported fields
}
LogExporter hooks into logrus and sends logs to Mothership.
func (*LogExporter) Fire ¶
func (e *LogExporter) Fire(entry *logrus.Entry) error
Fire called by logrus with log entry that LogExporter sends out.
func (*LogExporter) Levels ¶
func (e *LogExporter) Levels() []logrus.Level
Levels lists levels that tell logrus to trigger log injection.
Click to show internal directories.
Click to hide internal directories.