New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@loglayer/transport-datadog

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loglayer/transport-datadog

DataDog transport for the LogLayer logging library.

latest
Source
npmnpm
Version
4.0.2
Version published
Weekly downloads
27K
-1.18%
Maintainers
1
Weekly downloads
 
Created
Source

Datadog Transport for LogLayer

NPM Version NPM Downloads TypeScript

The DataDog transport for the LogLayer logging library.

Ships logs to DataDog using the datadog-transport-common library.

Important Notes

Installation

npm install loglayer @loglayer/transport-datadog serialize-error

Usage

import { LogLayer } from 'loglayer'
import { DataDogTransport } from "@loglayer/transport-datadog"
import { serializeError } from "serialize-error";

const log = new LogLayer({
  errorSerializer: serializeError,
  transport: new DataDogTransport({
    options: {
      ddClientConf: {
        authMethods: {
          apiKeyAuth: "YOUR_API_KEY",
        },
      },
      ddServerConf: {
        // Note: This must match the site you use for your DataDog login - See below for more info
        site: "datadoghq.eu"
      },
      onDebug: (msg) => {
        console.log(msg);
      },
      onError: (err, logs) => {
        console.error(err, logs);
      },
    },
  })
})

See the documentation for more information.

Keywords

logging

FAQs

Package last updated on 14 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts