优化日志,错误标记

This commit is contained in:
marvzhang
2020-02-13 11:15:51 +08:00
parent 0ea95e676a
commit 7c4ddd2824
9 changed files with 298 additions and 85 deletions

View File

@@ -1,9 +1,11 @@
import stats from './stats'
import encrypt from './encrypt'
import tour from './tour'
import log from './log'
export default {
stats,
encrypt,
tour
tour,
log
}

View File

@@ -0,0 +1,5 @@
const regexToken = ' :,.'
export default {
errorRegex: new RegExp(`(?:[${regexToken}]|^)((?:error|exception|traceback)s?)(?:[${regexToken}]|$)`, 'gi')
}