Using a custom logger with colors and timestamp instead of console.xxx

This commit is contained in:
quadbyte 2025-08-16 19:31:22 -04:00
parent 4794477be3
commit e800bc161d
34 changed files with 278 additions and 236 deletions

View file

@ -18,7 +18,7 @@ NBox {
// Height can be overridden by parent layout (SidePanel binds it to stats card)
//implicitHeight: content.implicitHeight + Style.marginLarge * 2 * scaling
// Component.onCompleted: {
// console.log(MediaService.trackArtUrl)
// Logger.logMediaService.trackArtUrl)
// }
ColumnLayout {
anchors.fill: parent

View file

@ -103,7 +103,7 @@ NPanel {
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: {
console.log("Lock screen requested")
Logger.log("PowerMenu", "Lock screen requested")
// Lock the screen
lockScreen.locked = true
powerMenu.visible = false
@ -353,7 +353,7 @@ NPanel {
} else if (WorkspacesService.isHyprland) {
logoutProcessHyprland.running = true
} else {
console.warn("No supported compositor detected for logout")
Logger.warn("PowerMenu", "No supported compositor detected for logout")
}
}