loglevel-datadog
TypeScript icon, indicating that this package has built-in type declarations

1.2.7 • Public • Published

loglevel-datadog

npm npm bundle size NPM npm GitHub issues semantic-release: angular

Send loglevel logs from the browser to Datadog via the datadog browser logs SDK.

loglevel + @datadog/browser-logs

Note that adding plugins to loglevel will show log output line numbers as coming from inside the plugin.

Installation

npm install --save loglevel-datadog

Usage

import log from 'loglevel';
import { loglevelDatadog } from 'loglevel-datadog';

loglevelDatadog(log, {
  clientToken: '<DATADOG_CLIENT_TOKEN>',
  site: '<DATADOG_SITE>',
  forwardErrorsToLogs: true,
  sampleRate: 100,
});

log.warn('hello datadog');

Configuration

loglevelDatadog uses the same configuration interface as @datadog/browser-logs. See the datadog initialization parameters for more details.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.714latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.714
1.2.60
1.2.50
1.2.40
1.2.30
1.2.20
1.2.10
1.2.00
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.10
1.0.00

Package Sidebar

Install

npm i loglevel-datadog

Weekly Downloads

14

Version

1.2.7

License

MIT

Unpacked Size

6.58 kB

Total Files

7

Last publish

Collaborators

  • manbearwiz