mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🔊 打印到文件
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user