"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 uiVersion = `ui v${"4.16.21"}`;
function createComponentLog(name) {
  const tableVersion = _core.VxeUI.tableVersion ? `table v${_core.VxeUI.tableVersion}` : '';
  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].filter(v => v).join(' ');
  return {
    warnLog: log.create('warn', versionInfo + '] [' + name),
    errLog: log.create('error', versionInfo + '] [' + name)
  };
}
const warnLog = exports.warnLog = log.create('warn', uiVersion);
const errLog = exports.errLog = log.create('error', uiVersion);