text: "use strict";
  var __importDefault = (this && this.__importDefault) || function (mod) {
      return (mod && mod.__esModule) ? mod : { "default": mod };
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  const winston_1 = __importDefault(require("winston"));
  const moment_1 = __importDefault(require("moment"));
  const logger = winston_1.default.createLogger({
      level: 'silly',
      format: winston_1.default.format.combine(winston_1.default.format.timestamp({
          format: 'DD-MM-YYYY HH:mm:ss'
      }), winston_1.default.format.errors({ stack: true }), winston_1.default.format.splat(), winston_1.default.format.json()),
      defaultMeta: { service: 'vEX Logger' },
      transports: [
          new winston_1.default.transports.File({ filename: `error-${moment_1.default(Date.now()).utc().format('DD-MM-YYYY')}.log`, level: 'error', dirname: `log/${moment_1.default(Date.now()).utc().format('DD-MM-YYYY')}` }),
          new winston_1.default.transports.File({ filename: `info-${moment_1.default(Date.now()).utc().format('DD-MM-YYYY')}.log`, level: 'info', dirname: `log/${moment_1.default(Date.now()).utc().format('DD-MM-YYYY')}` }),
          new winston_1.default.transports.File({ filename: `debug-${moment_1.default(Date.now()).utc().format('DD-MM-YYYY')}.log`, level: 'debug', dirname: `log/${moment_1.default(Date.now()).utc().format('DD-MM-YYYY')}` }),
          new winston_1.default.transports.File({ filename: `full-${moment_1.default(Date.now()).utc().format('DD-MM-YYYY')}.log`, dirname: `log/${moment_1.default(Date.now()).utc().format('DD-MM-YYYY')}` }),
          new winston_1.default.transports.Console({
              format: winston_1.default.format.combine(winston_1.default.format.colorize({ all: true }), winston_1.default.format.simple())
          }),
      ],
  });
  exports.default = logger;
  