logentries

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

® Gobuffalo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(enableColors bool) buffalo.Logger

NewLogger returns an instance of our logentries logger.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL