var winston = require('winston');
var moment = require('moment');
let fs = require('fs')

function getLogger(nconf) {
  var log_level = nconf.get('loglevel');
  var logger = new (winston.Logger)({
    transports: [
      new (winston.transports.Console)({
        "level": log_level,
        "json": nconf.get('json'),
        "timestamp": function() {
          return moment();
        }
      })
    ]
  });
  var logzioTokenFile = nconf.get("LOGZIO_TOKEN_FILE");
  if (logzioTokenFile) {
    let logzioToken = fs.readFileSync(logzioTokenFile, 'utf8').trim()
    var logzioWinstonTransport = require('winston-logzio');
    var loggerOptions = {
        token: logzioToken,
        host: 'listener.logz.io',
    };
    logger.add(logzioWinstonTransport, loggerOptions);
  }
  return logger
}
module.exports.getLogger = getLogger; 

@@ -312,16 +312,43 @@
 json'),%0A
+        %22stringify%22: true,%0A
         
@@ -435,373 +435,8 @@
 %7D);%0A
-  var logzioTokenFile = nconf.get(%22LOGZIO_TOKEN_FILE%22);%0A  if (logzioTokenFile) %7B%0A    let logzioToken = fs.readFileSync(logzioTokenFile, 'utf8').trim()%0A    var logzioWinstonTransport = require('winston-logzio');%0A    var loggerOptions = %7B%0A        token: logzioToken,%0A        host: 'listener.logz.io',%0A    %7D;%0A    logger.add(logzioWinstonTransport, loggerOptions);%0A  %7D%0A
   re

Remove logzio and make json log single line