@cadent/cadent-datadog-logger

Wrapper for Datadog logging in all Cadent javascript applications

Usage no npm install needed!

<script type="module">
  import cadentCadentDatadogLogger from 'https://cdn.skypack.dev/@cadent/cadent-datadog-logger';
</script>

README

cadent-datadog-logger

Overview

This package contains helper functions to use datadog's browser-sdk.

Purpose

The aim of this package is to help make using datadog's browser-sdk across an organization easier. By minimizing the amount of code needed to use the logger this will help make maintaining easier.

Usage

You will need to initialize the logger in your application. This is generally done in your applications root index. This will by default send all console outputs that are at warn and above.

logger(token, application, environment, handler);