@dodobrands/frontlogger-observer-plugin
TypeScript icon, indicating that this package has built-in type declarations

6.6.0 • Public • Published

This is an OPTIONAL plugin for frontlogger library to support Reporting API out of the box.

More info on the approach can be found here: https://developer.chrome.com/articles/reporting-observer/

Usage

import { reportingObserverPlugin } from '@dodobrands/frontlogger-observer-plugin'
import { Logger, useSink, consoleSink, usePlugin } from '@dodobrands/frontlogger'

const logger = new Logger({
	applicationName: 'your-frontend-app',
	sinks: [useSink(consoleSink)],
	environmentName: global.window.location.hostname,
	plugins: [reportingObserverPlugin({})]
})

Readme

Keywords

none

Package Sidebar

Install

npm i @dodobrands/frontlogger-observer-plugin

Weekly Downloads

0

Version

6.6.0

License

MIT

Unpacked Size

5.61 kB

Total Files

4

Last publish

Collaborators

  • dodopizza