Optimized the root .gitignore to exclude virtual environments, node modules, and temp folders to ensure clean and lightweight version tracking. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
629 B
TypeScript
23 lines
629 B
TypeScript
const VIRTUAL_HTML_LOG_PREFIX = '[虚拟HTML]';
|
|
const VIRTUAL_HTML_DEBUG_LOGS_ENABLED = false;
|
|
|
|
function formatMessage(message: string) {
|
|
return `${VIRTUAL_HTML_LOG_PREFIX} ${message}`;
|
|
}
|
|
|
|
export function logVirtualHtmlDebug(message: string, ...args: unknown[]) {
|
|
if (!VIRTUAL_HTML_DEBUG_LOGS_ENABLED) {
|
|
return;
|
|
}
|
|
|
|
console.log(formatMessage(message), ...args);
|
|
}
|
|
|
|
export function logVirtualHtmlWarn(message: string, ...args: unknown[]) {
|
|
console.warn(formatMessage(message), ...args);
|
|
}
|
|
|
|
export function logVirtualHtmlError(message: string, ...args: unknown[]) {
|
|
console.error(formatMessage(message), ...args);
|
|
}
|