• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

nrSendLog

Syntax

nrSendLog(nr as Object, message as String, logtype as String, fields = invalid as Object) as Void

Description

Record a log using the New Relic Log API.

Arguments

Arguments

Description

nr

New Relic Agent object.

message

Log message.

logtype

Log type.

fields

(optional) Additonal fields to be included in the log.

Return

Nothing.

Example

nrSendLog(m.nr, "This is a log", "console", {"key": "value"})
Copyright © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.