@betit/orion
Advanced tools
Comparing version 1.0.0-beta.5 to 1.0.0-beta.6
@@ -6,2 +6,3 @@ import { RawMessage, Logger as LoggerInterface } from '../types/interfaces'; | ||
private _client; | ||
private _vernose; | ||
constructor(_serviceName: string); | ||
@@ -8,0 +9,0 @@ createMessage(message: string): Message; |
@@ -8,2 +8,3 @@ "use strict"; | ||
this._serviceName = _serviceName; | ||
this._vernose = process.argv.indexOf('--verbose') !== 0; | ||
this._client = new graylog({ | ||
@@ -19,4 +20,7 @@ host: process.env.ORION_LOGGER_HOST || '127.0.0.1', | ||
this._client.raw(m); | ||
if (this._vernose) { | ||
console.log(m); | ||
} | ||
} | ||
} | ||
exports.Logger = Logger; |
{ | ||
"name": "@betit/orion", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-beta.6", | ||
"description": "Pluggable microservice framework", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
35143
1102