Skip to content

Instantly share code, notes, and snippets.

@yuxel
Created April 24, 2014 11:06
Show Gist options
  • Save yuxel/11250542 to your computer and use it in GitHub Desktop.
Save yuxel/11250542 to your computer and use it in GitHub Desktop.
var graylog2 = require("graylog2");
var logger = new graylog2.graylog({
servers: [
{ 'host': 127.0.0.1, port: 12201 },
{ 'host': 127.0.0.2, port: 12201 }
],
hostname: 'server.name', // the name of this host
facility: 'Node.js', // the facility for these log messages
bufferSize: 1350 // max UDP packet size, should never exceed the
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment