diff --git a/log-elk-logger.js b/log-elk-logger.js index beaf0da..c6544ca 100644 --- a/log-elk-logger.js +++ b/log-elk-logger.js @@ -107,7 +107,7 @@ module.exports = function (RED) { this.debugLog = config.logdebug; - if (elkLog || fileLog || consoleLog) { + if (elkLog || lokiLog || fileLog || consoleLog) { this.logger = new winston.createLogger({ level: 'debug', transports: transports, diff --git a/package.json b/package.json index 21c1c31..d87707a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-log-elk", - "version": "1.3.0", + "version": "1.3.1", "description": "A Node-RED logging node with multiple outputs using the winston,winston-elasticsearch and winston-loki logging libraries", "main": "log-elk.js", "scripts": { @@ -32,8 +32,8 @@ "license": "MIT", "dependencies": { "winston": "^3.13.0", - "winston-elasticsearch": "^0.18.0", - "winston-loki": "^6.1.2", + "winston-elasticsearch": "^0.15.2", + "winston-loki": "^6.1.3", "json-stringify-safe": "^5.0.1" } }