1.2.6 • Published 8 months ago

loglevel-datadog v1.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.

1.2.6

8 months ago

1.2.5

8 months ago

1.2.4

1 year ago

1.2.0

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago