Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RFC3339Micro represents microseconds/seconds fraction (6 digits) // that can be automatically parse by Loggly RFC3339Micro = "2006-01-02T15:04:05.999999Z07:00" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogglyHook ¶
type LogglyHook struct {
// contains filtered or unexported fields
}
LogglyHook to send logs to the Loggly service.
func NewLogglyHook ¶
NewLogglyHook creates a Loogly hook to be added to an instance of logger.
func (*LogglyHook) Fire ¶
func (hook *LogglyHook) Fire(entry *logrus.Entry) error
Fire sends the event to Loggly
func (*LogglyHook) Levels ¶
func (hook *LogglyHook) Levels() []logrus.Level
Levels returns the list of logging levels that we want to send to Loggly.
func (*LogglyHook) Tag ¶
func (hook *LogglyHook) Tag(tags string)
Tag exposes the go-loggly .Tag() functionality
Click to show internal directories.
Click to hide internal directories.