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)
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Source Files
¶
- nrzap.go
Click to show internal directories.
Click to hide internal directories.