'use strict';
var winston = require('winston');
winston.emitErrs = true;

var logger = new winston.Logger({
    transports: [
        new winston.transports.File({
            level: 'info',
            filename: './logs/info.log',
            handleExceptions: true,
            json: false,
            maxsize: 5242880, //5MB
            maxFiles: 5,
            colorize: true
        }),
        new winston.transports.Console({
            level: 'debug',
            handleExceptions: true,
            json: false,
            colorize: false
        })
    ],
    exitOnError: false
});

module.exports = logger;
module.exports.stream = {
    write: function(message){
        logger.info(message);
    }
};

@@ -150,18 +150,21 @@
 nsports.
-Fi
+Conso
 le(%7B%0A   
@@ -184,52 +184,12 @@
 l: '
-info',%0A            filename: './logs/info.lo
+debu
 g',%0A
@@ -265,253 +265,1148 @@
     
-maxsize: 5242880, //5MB%0A            maxFiles: 5,%0A            colorize: true%0A        %7D),%0A        new winston.transports.Console(%7B%0A            level: 'debug',%0A            handleExceptions: true,%0A            json: false,%0A            colorize: false
+colorize: false,%0A            timestamp: function() %7B%0A                var today = new Date();%0A                var dd = today.getDate();%0A                var mm = today.getMonth()+1;%0A                var yyyy = today.getFullYear();%0A                var hours = today.getHours();%0A                // Minutes part from the timestamp%0A                var minutes = today.getMinutes();%0A                // Seconds part from the timestamp%0A                var seconds = today.getSeconds();%0A%0A                if(dd%3C10) %7B%0A                    dd='0'+dd%0A                %7D%0A                if(mm%3C10) %7B%0A                    mm='0'+mm%0A                %7D%0A                var time = mm+'/'+dd+'/'+yyyy + ' ' + hours + ':' + minutes + ':' + seconds;%0A                return time;%0A            %7D,%0A            formatter: function(options) %7B%0A                // Return string will be passed to logger.%0A                return options.timestamp() + ' ' + options.level.toUpperCase() +' '+ (undefined !== options.message ? options.message : '') +%0A                    (options.meta && Object.keys(options.meta).length ? '%5Cn%5Ct'+ JSON.stringify(options.meta) : '' );%0A            %7D
 %0A   
@@ -1412,16 +1412,17 @@
       %7D)
+,
 %0A    %5D,%0A

Update logger.js