winston-logstash-format
v0.2.0
Published
Winston wrapper for Logstash format output.
Downloads
50
Readme
Winston Logstash Format
A Wrapper that formats the output on STDOUT as Logstash format into a Singleton.
Install
cd some-project
npm i --save winston-logstash-format
Configuration
APP_NAME: Nome of your project;
HOST: The host where your project is running.
Usage
const logger = require('winston-logstash-format');
logger.info('Hello World!');
Output
{
"@timestamp": "2017-04-28T21:43:50.721",
"@version": 1,
"environment": "production",
"message": "Hello World",
"severity": "info"
}