text: var winston = require('winston');
  var winstonDaily = require('winston-daily-rotate-file');
  var moment = require('moment');
  
  function timeStampFormat()  {
      return moment().format('YYYY-MM-DD HH:mm:ss.SSS ZZ');
  }
  
  var logger = new (winston.Logger)({
      transports: [
          new (winstonDaily)({
              name:'info-file',
              filename:'./log/server',
              datePattern:'_YYYY-MM-DD.log',
              colorize:false,
              maxsize:50000000,
              maxFiles:1000,
              level:'info',
              showLevel:true,
              json:false,
              timestamp:timeStampFormat
          }),
          new (winston.transports.Console) ({
              name: 'debug-console',
              colorize:true,
              level:'debug',
              showLevel:true,
              json:false,
              timestamp:timeStampFormat
          })
      ]
  });
  
  logger.debug('디버깅 메세지 입니다.');
  logger.error('에러 메세지 입니다.');
  