# Source: Logger.js

    /**
     * Created by 212556710 on 5/3/16.
     */
    var winston = require('winston');
    var logger = new (winston.Logger)({
        colorize: true,
        transports: [
            new (winston.transports.File)({
                filename: 'Reports/all-logs.log',
                options: {highWaterMark: 24},
                stringify: function (options) {
                    var dateTimeComponents = new Date().toLocaleTimeString('en-us', options).split(',');
                    if(options.message.includes("|"))
                        return options.message
                    else
                        return  dateTimeComponents[0] + ': ' +options.message
                }
            })
        ]
    });
    function formatter(args) {
        var logMessage =  args.message;
        return logMessage;
    }
    // var log = function () {
    //     logger.info((new Date()).getTime());
    // };
    // setInterval(log, 10);
    module.exports = logger;