From fb243f3345c6f3ed7e7c8c2d98c39b5afc782b9a Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 20 十月 2025 10:24:40 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp --- packages/utils/LoggerRecord/index.ts | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/utils/LoggerRecord/index.ts b/packages/utils/LoggerRecord/index.ts index b3552b9..ed5102c 100644 --- a/packages/utils/LoggerRecord/index.ts +++ b/packages/utils/LoggerRecord/index.ts @@ -55,7 +55,7 @@ } } -export const httpLoggerRecord = new HttpLoggerRecord({ +const Options: LoggerRecordOptions = { moduleName: getUtilsConfig().appName, enableStorage: true, loggerStorageAdapter() { @@ -71,4 +71,8 @@ getPageUrl() { return Taro.getCurrentInstance()?.router?.path ?? ''; }, -}); +}; + +export const defaultLoggerRecord = new LoggerRecord(Options); + +export const httpLoggerRecord = new HttpLoggerRecord(Options); -- Gitblit v1.9.1