However after setting KWin Scripting log level to Full Debug and removing *.debug=false rule from Custom Rules in KDebugSettings I don’t see this message (and other log messages from this script) in KSystemLog.
print(QVariant...): prints the provided arguments to stdout. Takes an arbitrary number of arguments. Comparable to console.log()which should be preferred in QML scripts.
I take it to mean that in QML script (and this is what we have here as the console.log() is used in the main.qml file) it’s console.log() which should be used, not print().
However after setting KWin Scripting log level to Full Debug and removing *.debug=false rule from Custom Rules in KDebugSettings I don’t see this message (and other log messages from this script) in KSystemLog.
KWin Scripting is for internal logging, that is from KWin scripting Api C++ implementation.
you have to see qml: KROHNKITE: starting the script
Is the qml prefix the name of logging category and does it mean that the default logging category in qml scripts is qml?
The question remains; why don’t I see this log entry and others do?
Hi - maybe a silly question on my part (I’m no expert!), but have you checked out the KDE Community Wiki page about KWin debugging? KWin/Debugging - KDE Community Wiki
The reason I ask is that it sounded like you were looking for KWin debug messages in the system journal, but if I understand correctly, I believe those messages would actually be output to a separate file - might be worth double-checking?
Thanks, this did the trick and now I can see log messages from Krohnkite.
Btw, custom rules set in KDebugSettings are saved in this file so alternatively one can add this rule there with the same result.
I still have no idea why setting more generic rule *.debug=true does not work but setting more specific one qml.debug=true works?
Btw, I had the same problem with not getting log output in the journal when using Desktop Shell Scripting Console and setting js.debug=true custom rule fixed it.