import { VxeUI } from '@vxe-ui/core';
const { log } = VxeUI;
const uiVersion = `ui v${"4.16.21"}`;
export function createComponentLog(name) {
    const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
    const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
    const designVersion = VxeUI.designVersion ? `design v${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)
    };
}
export const warnLog = log.create('warn', uiVersion);
export const errLog = log.create('error', uiVersion);
