Documentation ¶
Overview ¶
Package newrelic is a wrapper of the original "github.com/newrelic/go-agent/v3/newrelic".
Index ¶
- type Client
- func (c *Client) Debug(str string, args ...interface{})
- func (c *Client) Error(str string, args ...interface{})
- func (c *Client) Fatal(str string, args ...interface{})
- func (c *Client) Info(str string, args ...interface{})
- func (c *Client) Log(fields map[string]interface{})
- func (c *Client) Panic(str string, args ...interface{})
- func (c *Client) Trace(str string, args ...interface{})
- func (c *Client) Warn(str string, args ...interface{})
- type Config
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is newrelic client.
func NewFromNewrelicApp ¶ added in v0.19.0
func NewFromNewrelicApp(app *newrelic.Application, level LogLevel) *Client
NewFromNewrelic to create new newrelic client with existing newrelic app.
Don't forget to use `newrelic.ConfigAppLogForwardingEnabled(true)` when initializing your newrelic.
func (*Client) Panic ¶
Panic to print panic log. Will print panic error stack and exit like panic().
Click to show internal directories.
Click to hide internal directories.