2.0变量 , 向量总结正式推送
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { EventCenter } from "./event-manager.js";
|
||||
import { EventCenter } from "./event-manager.js";
|
||||
|
||||
const DEFAULT_MAX_LOGS = 200;
|
||||
|
||||
@@ -110,14 +110,14 @@ class LoggerCore {
|
||||
});
|
||||
}
|
||||
|
||||
info(moduleId, message) {
|
||||
this._log("info", moduleId, message, null);
|
||||
info(moduleId, ...args) {
|
||||
const msg = args.map(a => (typeof a === 'string' ? a : safeStringify(a))).join(' ');
|
||||
this._log('info', moduleId, msg, null);
|
||||
}
|
||||
|
||||
warn(moduleId, message) {
|
||||
this._log("warn", moduleId, message, null);
|
||||
warn(moduleId, ...args) {
|
||||
const msg = args.map(a => (typeof a === 'string' ? a : safeStringify(a))).join(' ');
|
||||
this._log('warn', moduleId, msg, null);
|
||||
}
|
||||
|
||||
error(moduleId, message, err) {
|
||||
this._log("error", moduleId, message, err || null);
|
||||
}
|
||||
|
||||
@@ -183,3 +183,4 @@ export const StoryOutlineStorage = new StorageFile('LittleWhiteBox_StoryOutline.
|
||||
export const NovelDrawStorage = new StorageFile('LittleWhiteBox_NovelDraw.json', { debounceMs: 800 });
|
||||
export const TtsStorage = new StorageFile('LittleWhiteBox_TTS.json', { debounceMs: 800 });
|
||||
export const CommonSettingStorage = new StorageFile('LittleWhiteBox_CommonSettings.json', { debounceMs: 1000 });
|
||||
export const VectorStorage = new StorageFile('LittleWhiteBox_Vectors.json', { debounceMs: 3000 });
|
||||
|
||||
Reference in New Issue
Block a user