Syntax
nrSendLog(nr as Object, message as String, logtype as String, fields = invalid as Object) as VoidDescription
Record a log using the New Relic Log API.
Arguments
Arguments | Description |
|---|---|
| New Relic Agent object. |
| Log message. |
| Log type. |
| (optional) Additonal fields to be included in the log. |
Return
Nothing.
Example
nrSendLog(m.nr, "This is a log", "console", {"key": "value"})