logzio-nodejs
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -14,3 +14,3 @@ | ||
this.host = 'listener-http.logz.io'; | ||
this.port = 5050; | ||
this.port = 8090; | ||
this.userAgent = 'Logzio-Logger NodeJS'; | ||
@@ -17,0 +17,0 @@ this.type = 'nodejs'; |
{ | ||
"name": "logzio-nodejs", | ||
"description": "A nodejs implementation for sending logs to Logz.IO cloud service", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Gilly Barr <gilly@logz.io>", | ||
@@ -6,0 +6,0 @@ "repository": { |
# logzio-nodejs | ||
NodeJS logger for LogzIO | ||
Sample usage : | ||
```javascript | ||
var logger = require('logzio-nodejs').createLogger({ | ||
token: '__YOUR_API_TOKEN__', | ||
type: 'YourLogType' // OPTIONAL (If none is set, it will be 'nodejs') | ||
}); | ||
// sending text | ||
logger.log('This is a log message'); | ||
// sending an object | ||
var obj = { | ||
message: 'Some log message', | ||
param1: 'val1', | ||
param2: 'val2' | ||
}; | ||
logger.log(obj); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3203
24