Skip to main content

Availability of Logging API

1 reply [Last post]
tvandeve
Offline
Joined: 2005-08-29

Hi,

It seems java.util.logging is not available to BD-J. Is there another logging API that can be used for writing log messages?

Thanks,
Thomas

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Bill Foote

bd-j-dev@mobileandembedded.org wrote:
> Hi,
>
> It seems java.util.logging is not available to BD-J. Is there another logging API that can be used for writing log messages?

There is, in org.dvb somewhere. The output from that API
might or might not go somewhere you can read it, though.

System.err or System.out can also be used as a logging API, of
course; it's slightly less likely to go where you can see it.

Another, probably better alternative is to write your own logging API,
or use one someone else has written. You can store the logging data in
a file, either in persistent storage or the BUDA, or you can store it
in-memory and provide a way to retrieve it via a socket (if you're testing
on a BD-Live player, naturally). If stored in a file, you can then run
another xlet to retrieve and display the logging data. Or, you can store
them in memory, and provide a UI to read the messages directly in the xlet
under test.

In the cookbook repository, we have the package that does some of
this - check out DiscCreationTools/logger.

Cheers,

Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net