Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Default Logging
Default Logging [message #521053] Tue, 16 March 2010 10:46 Go to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,

By default Riena logs using the Equinox Logger. This can be switched off
using the system prop "riena.development".

Wouldn't it be better to assume "production" (no logging) as default and
let interested developers activate the logger on demand?

Any chance to get this changed?

Regards,
Stefan.
Re: Default Logging [message #521109 is a reply to message #521053] Tue, 16 March 2010 13:01 Go to previous message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
Hi,

On 16.03.2010 11:46, Stefan Roeck wrote:
> Hi,
>
> By default Riena logs using the Equinox Logger. This can be switched off
> using the system prop "riena.development".

Yes, Riena logs using the Equinox Logger. This can not be switched on or
off.
But what you can do is configuring log listeners and log catchers.
LogListener will perform the actual logging, i.e. write the logging
information to files. LogCatcher attach themselves to other sources of
events and route them into Equinox Logger.
This can all be done with extensions to
org.eclipse.riena.core.logListeners and org.eclipse.riena.core.logCatchers.

If no such extensions have been defined and the system property
"riena.development" is "true" (which is the default if you do nothing)
then a default initialization will be done which creates a logger that
writes to System.out and a log catcher will created that catches events
from org.eclipse.core.runtime.Platform.

>
> Wouldn't it be better to assume "production" (no logging) as default and

Well ..
The idea behind this behavior is that while you are developing you will
get a simple console logging for free.
If you want to deploy your application and you define loggers (e.g. for
log4j) and catchers everything is still fine.
If you do not want logging at all you have to set the system property to
"false".

> let interested developers activate the logger on demand?

Can you elaborate on this? What do you mean with "interested developers"
and what is the granularity of "on demand"? While you app is running? ..

>
> Any chance to get this changed?

With the greatest of reluctance!

>
> Regards,
> Stefan.

Tschüß,
Stefan
Re: Default Logging [message #584821 is a reply to message #521053] Tue, 16 March 2010 13:01 Go to previous message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
Hi,

On 16.03.2010 11:46, Stefan Roeck wrote:
> Hi,
>
> By default Riena logs using the Equinox Logger. This can be switched off
> using the system prop "riena.development".

Yes, Riena logs using the Equinox Logger. This can not be switched on or
off.
But what you can do is configuring log listeners and log catchers.
LogListener will perform the actual logging, i.e. write the logging
information to files. LogCatcher attach themselves to other sources of
events and route them into Equinox Logger.
This can all be done with extensions to
org.eclipse.riena.core.logListeners and org.eclipse.riena.core.logCatchers.

If no such extensions have been defined and the system property
"riena.development" is "true" (which is the default if you do nothing)
then a default initialization will be done which creates a logger that
writes to System.out and a log catcher will created that catches events
from org.eclipse.core.runtime.Platform.

>
> Wouldn't it be better to assume "production" (no logging) as default and

Well ..
The idea behind this behavior is that while you are developing you will
get a simple console logging for free.
If you want to deploy your application and you define loggers (e.g. for
log4j) and catchers everything is still fine.
If you do not want logging at all you have to set the system property to
"false".

> let interested developers activate the logger on demand?

Can you elaborate on this? What do you mean with "interested developers"
and what is the granularity of "on demand"? While you app is running? ..

>
> Any chance to get this changed?

With the greatest of reluctance!

>
> Regards,
> Stefan.

Tschüß,
Stefan
Previous Topic:2.0.0.M6
Next Topic:Programmatically Focus on Workarea
Goto Forum:
  


Current Time: Thu Apr 25 23:22:23 GMT 2024

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

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

Back to the top