Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogExporter ¶
type LogExporter struct {
// contains filtered or unexported fields
}
LogExporter hooks into logrus and sends logs to Mothership.
func NewLogExporter ¶
func NewLogExporter(logger *logrus.Logger, sender LogSender) *LogExporter
NewLogExporter returns new exporter that can be hooked into logrus to inject logs into Cast AI.
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.