notifications-logger
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -9,3 +9,6 @@ const axios = require('axios'); | ||
this.http = axios.create({ | ||
baseURL: options.hostAPI | ||
baseURL: options.hostAPI, | ||
params: { | ||
version: this.version | ||
} | ||
}) | ||
@@ -19,6 +22,6 @@ } | ||
*/ | ||
monit(log) { | ||
monit(data) { | ||
this.send({ | ||
created_at: moment().format('YYYY-MM-DD HH:mm:ss'), | ||
log | ||
data | ||
}); | ||
@@ -25,0 +28,0 @@ } |
{ | ||
"name": "notifications-logger", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "The class for get the logs in systems and send for server api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,4 @@ # Install | ||
applicationName: 'application name' , | ||
hostAPI: 'http://localhost:3000' | ||
version: '<version-app>' | ||
hostAPI: 'http://localhost:3002' | ||
}) | ||
@@ -26,3 +27,3 @@ | ||
``` | ||
notifyLogger.monit('you logger') | ||
notifyLogger.monit('you message logger') | ||
@@ -38,4 +39,4 @@ ``` | ||
created_at: YYYY-MM-DD HH:mm:ss, | ||
log: "lorem ipsu" | ||
data: "lorem ipsu" | ||
} | ||
``` |
1844
26
39