Documentation ¶
Overview ¶
Package nrzerolog supports https://github.com/rs/zerolog
Wrap your zerolog Logger using nrzerolog.Transform to send agent log messages to zerolog.
Example ¶
// Create a new zerolog logger: zl := zerolog.New(os.Stderr) newrelic.NewApplication( newrelic.ConfigAppName("Example App"), newrelic.ConfigLicense("__YOUR_NEWRELIC_LICENSE_KEY__"), // Use nrzerolog to register the logger with the agent: nrzerolog.ConfigLogger(&zl), )
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigLogger ¶
func ConfigLogger(l *zerolog.Logger) newrelic.ConfigOption
ConfigLogger configures the newrelic.Application to send log messsages to the provided zerolog logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.