logstash
v5.0.2
Published
Robust logger for node and the browser that sends log messages to a logstash HTTP endpoint
Downloads
1,516
Maintainers
Readme
Logstash logger
const createLogstash = require('logstash');
// required
const url = process.env.LOGSTASH_URL;
// optional
const tags = ['production', 'api'];
const level = "info";
// Create logger instance
const logger = createLogstash(url, tags, level);
logger.info("Hello Logger!", { data: 123 });