"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createComponentLog = createComponentLog;
exports.warnLog = exports.errLog = void 0;
var _core = require("@vxe-ui/core");
const {
  log
} = _core.VxeUI;
const tableVersion = `table v${"3.21.22"}`;
function createComponentLog(name) {
  const uiVersion = _core.VxeUI.uiVersion ? `ui v${_core.VxeUI.uiVersion}` : '';
  const ganttVersion = _core.VxeUI.ganttVersion ? `gantt v${_core.VxeUI.ganttVersion}` : '';
  const designVersion = _core.VxeUI.designVersion ? `design v${_core.VxeUI.designVersion}` : '';
  const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].join(' ');
  return {
    warnLog: log.create('warn', versionInfo + '] [' + name),
    errLog: log.create('error', versionInfo + '] [' + name)
  };
}
const warnLog = exports.warnLog = log.create('warn', tableVersion);
const errLog = exports.errLog = log.create('error', tableVersion);