Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graylog2

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graylog2 - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

11

graylog.js

@@ -65,3 +65,3 @@ var zlib = require('zlib'),

graylog.prototype.emergency = function (short_message, full_message, additionalFields, timestamp) {
return this._log(short_message, full_message, additionalFields, timestamp, this.level.EMERGENCY);
return this._log(short_message, full_message, additionalFields, timestamp, this.level.EMERG);
};

@@ -113,3 +113,10 @@

if (typeof(short_message) !== 'object') {
if (typeof(short_message) !== 'object' && typeof(full_message) === 'object' && additionalFields === undefined) {
// Only short message and additional fields are available
message.short_message = short_message;
message.full_message = short_message;
additionalFields = full_message;
}
else if (typeof(short_message) !== 'object') {
// We normally set the data

@@ -116,0 +123,0 @@ message.short_message = short_message;

6

package.json
{
"name": "graylog2",
"description": "Graylog2 client library for node.js",
"homepage": "http://egorfine.github.com/node-graylog",
"homepage": "http://github.com/Wizcorp/node-graylog2",
"bugs": {
"url": "http://github.com/Wizcorp/node-graylog2/issues"
},
"version": "0.1.0",
"author": "Marc Trudel-Belisle",
"version": "0.1.1",
"author": "Marc Trudel-Belise",
"engines": {

@@ -11,0 +11,0 @@ "node": ">=0.6.11"

@@ -43,2 +43,12 @@ var graylog = require('./graylog'),

console.log('---------------------------------------------');
console.log('Sending different parameters');
console.log('---------------------------------------------');
client.log('ParametersTest - Only short message');
client.log('ParametersTest - Short message and json', {cool: 'beans'});
client.log('ParametersTest - Short message and full message', 'Full message');
client.log('ParametersTest - Short Message with full message and json', 'Full message', {cool: 'beans'});
console.log('');
console.log('Insertion complete. Please check', 'http://' + servers[0].host + ':3000', 'and verify that insertion was successfull');

@@ -45,0 +55,0 @@ console.log('');

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc