Skip to content

Robust logger for browser and node that sends log messages to logstash http server

License

Notifications You must be signed in to change notification settings

TouchtechAB/logstash

 
 

Repository files navigation

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

About

Robust logger for browser and node that sends log messages to logstash http server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%