[Yanel-dev] Logging in Yanel
Cedric Staub
cedric.staub at wyona.com
Fri Sep 3 16:10:45 CEST 2010
On Fri, Sep 03, 2010 at 04:00:36PM +0200, Balz Schreier wrote:
> yanel logs on level WARN per default.
Yanel uses log4j, dunno what the default config says though.
Log4j has functions like log.warn(), log.debug(), ...
> i often see log statements like
> 1237 2010-09-03 15:56:27,237 [http-8443-Processor24] WARN
> org.wyona.yanel.core.ResourceTypeRegistry.readResourceTypes():157 - *DEBUG
> *: Register resource type...
That means someone wrote log.warn("DEBUG: ..."). Probably for debugging
and to avoid having to change the configuration, but then forgot to
remove the logging statements I guess?
> should these log messages be logged under DEBUG or what is the reason why
> DEBUG is in the message content?
> i hope my configuration is correct like this.
IMHO they should be replaced by log.debug(...) or removed all together.
Cheers
Cedric
More information about the Yanel-development
mailing list