3.1.0 • Published 7 months ago

@loglayer/transport-roarr v3.1.0

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

Roarr Transport for LogLayer

NPM Version NPM Downloads TypeScript

The Roarr transport for the LogLayer logging library.

Roarr is a JSON logger for Node.js and browser environments.

Installation

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

Usage

Node.js Environment Setup

ROARR_LOG=true node your-app.js

Browser Environment Setup

window.ROARR = {
  enabled: true
}

Implementation

import { Roarr as r } from 'roarr'
import { LogLayer } from 'loglayer'
import { RoarrTransport } from "@loglayer/transport-roarr"
import { serializeError } from 'serialize-error'

const log = new LogLayer({
  transport: new RoarrTransport({
    logger: r
  }),
  errorSerializer: serializeError  // Roarr requires error serialization
})

Documentation

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

3.1.0

7 months ago

3.0.4

9 months ago

3.0.3

9 months ago

3.0.2

9 months ago

3.0.1

9 months ago

3.0.0

10 months ago

2.0.6

10 months ago

2.0.5

10 months ago

2.0.4

10 months ago

2.0.3

10 months ago

2.0.2

11 months ago

2.0.1

11 months ago

2.0.0

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago