@salesduck/transport-fetch
v4.1.0
Published
Allows you to send log data over the network to the consumer
Downloads
76
Readme
Transport Fetch
Allows you to send log data over the network to the consumer
Setup
Install package
yarn add @salesduck/transport-fetch
Usage
Just create and pass to logger
import { FetchTransport } from '@salesduck/transport-fetch';
import { DefaultLogger } from '@salesduck/logger';
const transport = new FetchTransport({ url: 'https://somewebsite.com' });
const logger = new DefaultLogger({ transports: [transport] });