Problem with log messages over javascript API
Posted: 19 May 2009 16:09
Hi,
I have problems reading log messages over the javascript API. It seems the API is only returning log messages with verbosity level of 1, no matter how I set log.verbosity (except -1, this will disable it completely).
I had a similar problem with 0.9.9. In this version the API always returned messages from all verbosity levels, no matter how log.verbosity was set.
Is this a bug, or am I doing something wrong?
Joerg
I have problems reading log messages over the javascript API. It seems the API is only returning log messages with verbosity level of 1, no matter how I set log.verbosity (except -1, this will disable it completely).
Code: Select all
vlc.log.verbosity = 3;
....
var logOutput = document.getElementById("messages");
var messages = vlc.log.messages;
var iterator = messages.iterator();
while (iterator.hasNext) {
var m = iterator.next();
logOutput.innerHTML += m.severity + " [" + m.name + "] [" + m.type + "] " + m.message + "<br />";
}
messages.clear();
Is this a bug, or am I doing something wrong?
Joerg