Revert "Logger: remove timestamp"

This reverts commit 513ac18dc3.
This commit is contained in:
Lysec
2026-02-10 14:44:37 +01:00
parent 06ae4c58a6
commit 1521ae0c71
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -172,10 +172,10 @@
"transitionDuration": 1500,
"transitionType": "random",
"transitionEdgeSmoothness": 0.05,
"panelPosition": "follow_bar",
"hideWallpaperFilenames": false,
"overviewBlur": 0.4,
"overviewTint": 0.6,
"panelPosition": "follow_bar",
"hideWallpaperFilenames": false,
"useWallhaven": false,
"wallhavenQuery": "",
"wallhavenSorting": "relevance",
+3 -2
View File
@@ -7,12 +7,13 @@ Singleton {
id: root
function _formatMessage(...args) {
var t = Time.getFormattedTimestamp();
if (args.length > 1) {
const maxLength = 14;
var module = args.shift().substring(0, maxLength).padStart(maxLength, " ");
return `\x1b[35m${module}\x1b[0m ` + args.join(" ");
return `\x1b[36m[${t}]\x1b[0m \x1b[35m${module}\x1b[0m ` + args.join(" ");
} else {
return args.join(" ");
return `[\x1b[36m[${t}]\x1b[0m ` + args.join(" ");
}
}