2.1.0 • Published 9 months ago

@loglayer/transport-dynatrace v2.1.0

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

Dynatrace Transport for LogLayer

NPM Version NPM Downloads TypeScript

A transport for the LogLayer logging library to send logs to Dynatrace using their Log Monitoring API v2.

Installation

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

Quick Start

You will need an access token with the logs.ingest scope. See access token documentation for more details.

import { LogLayer } from 'loglayer'
import { DynatraceTransport } from "@loglayer/transport-dynatrace"

const log = new LogLayer({
  errorSerializer: serializeError,
  transport: new DynatraceTransport({
    url: "https://your-environment-id.live.dynatrace.com/api/v2/logs/ingest",
    ingestToken: "your-api-token",
    onError: (error) => console.error('Failed to send log:', error)
  })
})

log.info('Hello world')

Documentation

For more details, visit https://loglayer.dev/transports/dynatrace

2.1.0

9 months ago

2.0.4

11 months ago

2.0.3

11 months ago

2.0.2

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago