Skip to content

Commit

Permalink
feat:带等级的实时日志
Browse files Browse the repository at this point in the history
  • Loading branch information
bietiaop authored and MliKiowa committed Dec 1, 2024
1 parent 85e0b71 commit af05224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class LogWrapper {
// eslint-disable-next-line no-control-regex
this.logger.log(level, message.replace(/\x1B[@-_][0-?]*[ -/]*[@-~]/g, ''));
}
logSubscription.notify(message);
logSubscription.notify(JSON.stringify({ level, message }));
}

log(...args: any[]) {
Expand Down

0 comments on commit af05224

Please sign in to comment.