Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextFormatter ¶
type ContextFormatter struct {
// contains filtered or unexported fields
}
ContextFormatter is a `logrus.Formatter` that will format logs for sending to New Relic.
func NewFormatter ¶
func NewFormatter(appName string, formatter logrus.Formatter) ContextFormatter
NewFormatter creates a new `logrus.Formatter` that will format logs for sending to New Relic.
func NewFormatterFromEnvironment ¶
func NewFormatterFromEnvironment(formatter logrus.Formatter) ContextFormatter
NewFormatterFromEnvironment creates a new `logrus.Formatter` that will format logs for sending to New Relic. The application name is read from the `NEW_RELIC_APP_NAME` environment variable.
Click to show internal directories.
Click to hide internal directories.