Skip to content

A template for creating transports for LogLayer

License

Notifications You must be signed in to change notification settings

loglayer/loglayer-transport-boilerplate

Repository files navigation

Transport Boilerplate for LogLayer

This is a template for creating transports for use with LogLayer.

See the Creating Transports documentation for more information.

Installation

npm install

Run Tests

npm run test

Run Live Tests

npm run livetest

Lint + Fix

Uses Biome for linting and formatting.

npm run lint

Build

Uses tsup to build commonjs and esm versions.

npm run build

Project Structure

.
├── src/
│   ├── __tests__/                # Test files
│   ├── index.ts                  # Entrypoint
│   ├── LogBasedTransport.ts      # Transport implementation using a log library
│   └── NotLogBasedTransport.ts   # Transport implementation not using a log library