Documentation ¶
Overview ¶
Package nrzap supports https://github.com/uber-go/zap
Wrap your zap Logger using nrzap.Transform to send agent log messages to zap.
Example ¶
cfg := newrelic.NewConfig("Example App", "__YOUR_NEWRELIC_LICENSE_KEY__") // Create a new zap logger: z, _ := zap.NewProduction() // Use nrzap to register the logger with the agent: cfg.Logger = Transform(z.Named("newrelic")) newrelic.NewApplication(cfg)
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.