wupengfei
5 天以前 a6a3a9778a473c94b3bb5077f3f5c727edcee2cc
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);