Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Best way to do logging from plugin
Best way to do logging from plugin [message #300699] Wed, 15 March 2006 16:08 Go to next message
Eclipse UserFriend
What is the official "Eclipse way" of doing logging in a plugin? I
found a getLog() method in org.eclipse.core.runtime.Platform, but I
cannot tell from the javadocs if this is intended for the type of
logging normally done w/ log4j.

Thanks
Michael Giroux
Re: Best way to do logging from plugin [message #300722 is a reply to message #300699] Thu, 16 March 2006 07:00 Go to previous message
Eclipse UserFriend
Michael Giroux wrote:
> What is the official "Eclipse way" of doing logging in a plugin? I
> found a getLog() method in org.eclipse.core.runtime.Platform, but I
> cannot tell from the javadocs if this is intended for the type of
> logging normally done w/ log4j.

I don't know about "best way", but it is the eclipse standard way.
Depending on how much of eclipse (vs RCP) that you're using it puts the
logs in a standard location, they can be viewed as a text file from the
Help>About>Configuration dialog and the Eclipse Error View will display
them.

I guess the quesiton would be "what type of logging do you want to do".
If you want to log exceptional cases, errors, and the occasional
important config message to the user, eclipse getLog() is fine.

If you want the flexible logging that includes the above information but
also logs program state and transactions, and can feed it to remote
locations later the you would probably want to use log4j.

Later,
PW
Previous Topic:Is it possible to continously refresh a view?
Next Topic:class org.eclipse.core.commands.common.EventManager missing in 3.2M5a?
Goto Forum:
  


Current Time: Thu Jul 24 10:35:35 EDT 2025

Powered by FUDForum. Page generated in 0.04319 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top