mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-30 17:42:06 -04:00
logger: add a dedicated QML logging Singleton
- adds log.info/error/debug/warn/fatal - adds ability to write logs to any file - add CLI options in addition to env to set log levels
This commit is contained in:
@@ -9,6 +9,7 @@ import qs.Widgets
|
||||
|
||||
FloatingWindow {
|
||||
id: processListModal
|
||||
readonly property var log: Log.scoped("ProcessListModal")
|
||||
|
||||
property bool disablePopupTransparency: true
|
||||
property int currentTab: 0
|
||||
@@ -22,7 +23,7 @@ FloatingWindow {
|
||||
|
||||
function show() {
|
||||
if (!DgopService.dgopAvailable) {
|
||||
console.warn("ProcessListModal: dgop is not available");
|
||||
log.warn("dgop is not available");
|
||||
return;
|
||||
}
|
||||
visible = true;
|
||||
@@ -36,7 +37,7 @@ FloatingWindow {
|
||||
|
||||
function toggle() {
|
||||
if (!DgopService.dgopAvailable) {
|
||||
console.warn("ProcessListModal: dgop is not available");
|
||||
log.warn("dgop is not available");
|
||||
return;
|
||||
}
|
||||
visible = !visible;
|
||||
@@ -44,7 +45,7 @@ FloatingWindow {
|
||||
|
||||
function focusOrToggle() {
|
||||
if (!DgopService.dgopAvailable) {
|
||||
console.warn("ProcessListModal: dgop is not available");
|
||||
log.warn("dgop is not available");
|
||||
return;
|
||||
}
|
||||
if (visible) {
|
||||
|
||||
Reference in New Issue
Block a user