Page 1 of 1

Problem with log messages over javascript API

Posted: 19 May 2009 16:09
by joerg.f
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).

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();
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

Re: Problem with log messages over javascript API

Posted: 26 May 2009 00:40
by thannoy
Maybe related to a recent change in latests stable releases (since 0.9.9 maybe). But for sure you should try to stop using .log.* from the web plugins. This part of the API is likely to be deleted in next releases (already deleted for mozilla-plugin in the source code).

Re: Problem with log messages over javascript API

Posted: 29 May 2009 13:31
by edwart
Hi,

will be there an alternative interface to check the error-logs?

Kind regards,
edwart

Re: Problem with log messages over javascript API

Posted: 29 May 2009 15:30
by thannoy
I think you will be able to look at the console (printed messages).
On Linux, it should be more easy (runing the browser from a console, etc). In Windows/mozilla it should be doable (giving parameter -console to mozilla iirc).
For the IE/ActiveX, maybe more difficult. Maybe ie4linux under windows/wine is the best way.