Documentation ¶
Overview ¶
® Gobuffalo
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogentriesHook ¶
type LogentriesHook struct {
// contains filtered or unexported fields
}
func NewLogentriesHook ¶
func NewLogentriesHook(token string) *LogentriesHook
NewLogentriesHook creates a hook to be added to an instance of logger.
func (*LogentriesHook) Fire ¶
func (hook *LogentriesHook) Fire(entry *logrus.Entry) error
Fire is called when a log event is fired.
func (*LogentriesHook) Levels ¶
func (hook *LogentriesHook) Levels() []logrus.Level
Levels returns the available logging levels.
type LogrusLogger ¶
type LogrusLogger struct {
logrus.FieldLogger
}
Logrus is a Logger implementation backed by sirupsen/logrus
func (LogrusLogger) SetOutput ¶
func (l LogrusLogger) SetOutput(w io.Writer)
SetOutput will try and set the output of the underlying logrus.FieldLogger if it can
func (LogrusLogger) WithField ¶
func (l LogrusLogger) WithField(s string, i interface{}) logger.FieldLogger
WithField returns a new Logger with the field added
func (LogrusLogger) WithFields ¶
func (l LogrusLogger) WithFields(m map[string]interface{}) logger.FieldLogger
WithFields returns a new Logger with the fields added
Click to show internal directories.
Click to hide internal directories.