'use strict';

const winston = require('winston');

// Setup winston default instance
const LOGGER_LEVEL = process.env.LOGGER_LEVEL || 'info';
const LOGGER_TIMESTAMP = !(process.env.LOGGER_TIMESTAMP === 'false');
const LOGGER_COLORIZE = process.env.LOGGER_COLORIZE === 'true'
const LOGGER_PRETTY_PRINT = process.env.LOGGER_PRETTY_PRINT === 'true';

winston.configure({
  transports: [
    new winston.transports.Console({
      prettyPrint: LOGGER_PRETTY_PRINT,
      colorize: LOGGER_COLORIZE,
      level: LOGGER_LEVEL,
      timestamp: LOGGER_TIMESTAMP,
    }),
  ],
  exceptionHandlers: [
    new winston.transports.Console({
      prettyPrint: LOGGER_PRETTY_PRINT,
      colorize: LOGGER_COLORIZE,
    }),
  ],
});

@@ -230,16 +230,18 @@
 ORIZE = 
+!(
 process.
@@ -265,21 +265,24 @@
 ZE === '
-true'
+false');
 %0Aconst L
@@ -302,16 +302,18 @@
 PRINT = 
+!(
 process.
@@ -345,13 +345,15 @@
 == '
-tru
+fals
 e'
+)
 ;%0A%0Aw

Enable colorization and pretty printing be default