feat(logging): include milliseconds timestamps (#2963)
This commit is contained in:
parent
04df80ff6b
commit
6d91e680c5
2 changed files with 11 additions and 6 deletions
|
|
@ -142,7 +142,7 @@
|
|||
/** Parse the text errors, calculating the text, the timestamp and the level */
|
||||
fancyLogs() {
|
||||
if (!this.logs) return [];
|
||||
let regex = /(\[\d{4}:\d{2}:\d{2}:\d{2}:\d{2}:\d{2}\]):\s/g;
|
||||
let regex = /(\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}]):\s/g;
|
||||
let rawLogLines = (this.logs.split(regex)).splice(1);
|
||||
let logLines = []
|
||||
for (let i = 0; i < rawLogLines.length; i += 2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue