[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[ews.eclipse.technology.rap] Re: Logging in RAP

Hi Thomas,

depends on how you define "logging". If it's just about logging certain things to an end-point (file, db, stream, whatever) then there is nothing you need to care about. See for example this series about logging in OSGi:
http://ekkescorner.wordpress.com/blog-series/osgi-apps/
OSGi itself provides a log service that you can use.


If you're talking about Log-Handling, eg. display some error to the user, they you need to take a little care. As long as you're working with the status handlers of the Workbench, there should be no problem to expect. As always, the most problematic thing is if you're trying to do something in the UI from a background thread without a handle to the display - but this is not specific to logging.

Hope that helped a little bit,
  Ben

Thomas Haskes wrote:
Hi Developers,

I would like to set up some kind of logging for my RAP application, but
at the moment I'm not that familiar with logging technologies.

Is there anything to have in mind when setting up logging for a RAP
application? Is it possible to set it up in a way that is single
sourcing aware? Is there a HOWTO already?

TIA

Tom