🔊 打印到文件

This commit is contained in:
目棃
2025-02-26 17:33:04 +08:00
parent 17f1b39414
commit c9ea10f0ef

View File

@@ -85,6 +85,7 @@ class Logger {
const timeNow = timestampToDate(new Date().getTime());
const msg = `[${timeNow}]${message}`;
await event.emitTo("TeyvatGuide", "userScriptLog", msg);
await info(message);
}
/**
@@ -99,6 +100,7 @@ class Logger {
const msg = `//--------------------${midStr}--------------------//`;
await event.emitTo("TeyvatGuide", "userScriptLog", msg);
if (!start) await event.emitTo("TeyvatGuide", "userScriptLog", "");
await info(msg);
}
}