Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLogrusLogstashFormatter ¶
DefaultLogrusLogstashFormatter returns a default Logstash formatter: A JSON format with "@version" set to "1" (unless set differently in `fields`, "type" to "log" (unless set differently in `fields`), "@timestamp" to the log time and "message" to the log message.
Note: to set a different configuration use the `LogstashFormatter` structure.
func DefaultLogrusLokiFormatter ¶
DefaultLogrusLokiFormatter returns a default loki formatter: A JSON format with "@version" set to "1" (unless set differently in `fields`, "type" to "log" (unless set differently in `fields`), "@timestamp" to the log time and "message" to the log message.
Note: to set a different configuration use the `LogrusLokiFormatter` structure.
Types ¶
type LogrusLogstashFormatter ¶
LogrusLogstashFormatter represents a Logstash format. It has logrus.Formatter which formats the entry and logrus.Fields which are added to the JSON message if not given in the entry data.
Note: use the `DefaultFormatter` function to set a default Logstash formatter.
type LogrusLokiFormatter ¶
LogrusLokiFormatter represents a loki format. It has logrus.Formatter which formats the entry and logrus.Fields which are added to the JSON message if not given in the entry data.
Note: use the `DefaultFormatter` function to set a default loki formatter.