Skip to content

Files

Latest commit

meme
me
and
me
Nov 29, 2017
c4d22a4 · Nov 29, 2017

History

History
17 lines (12 loc) · 315 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 315 Bytes

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 });