@salesduck/format-json
v4.0.0
Published
Transform log message to json format
Downloads
1
Readme
Format JSON
Converts log data into JSON format;
Setup
Install package
yarn add @salesduck/format-json
Usage
Just create and pass to transport
import { ConsoleTransport } from '@salesduck/transport-console';
import { JsonFormat } from '@salesduck/format-json';
const formatter = new JsonFormat();
const transport = new ConsoleTransport({ formatter });