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