QIE has the following commands you can use in your script to create log entries in the message.
qie.info()
qie.debug()
qie.warn()
In the channel you can specify what log level you want.

You can also turn on debug messages for a set time in the channel status window:
