• Log inStart now

Now that we've migrated this site's content to docs.newrelic.com, we're EOLing this site on June 21st 2024.

logger

Usage

import { logger } from 'nr1'

API methods

logger.debug

function () => undefined

logger.deprecate

function (
message: string

Deprecation message.

) => undefined

logger.error

function (
message: string,

JavaScript string containing zero or more substitution strings. To print the percentage sign, use double encoding (%%).

...params: Object[]

JavaScript objects with which to replace substitution strings within message. This gives you additional control over the format of the output.

) => undefined

logger.log

function (
message: string,

JavaScript string containing zero or more substitution strings. To print the percentage sign, use double encoding (%%).

...params: Object[]

JavaScript objects with which to replace substitution strings within message. This gives you additional control over the format of the output.

) => undefined

logger.silent

function (
message: string,

JavaScript string containing zero or more substitution strings. To print the percentage sign, use double encoding (%%).

...params: Object[]

JavaScript objects with which to replace substitution strings within message. This gives you additional control over the format of the output.

) => undefined

logger.warn

function (
message: string,

JavaScript string containing zero or more substitution strings. To print the percentage sign, use double encoding (%%).

...params: Object[]

JavaScript objects with which to replace substitution strings within message. This gives you additional control over the format of the output.

) => undefined
Copyright © 2024 New Relic Inc.

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