Skip to content

Latest commit

 

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