[Yanel-dev] Logging in Yanel
Michael Wechner
michael.wechner at wyona.com
Fri Sep 3 17:37:10 CEST 2010
Balz Schreier wrote:
> I thought that as well because the log4j.properties file contains
> log4j.rootCategory=WARN, A1
>
> I added now a specific line at the end so that the Zwischengas classes
> are logged with INFO:
> log4j.logger.com.zwischengas=INFO
I guess you did this within
YANEL_TRUNK/conf/local/local.log4j.properties
which it is made for.
Please do not add this to Yanel itself ;-)
Thanks
Michael
>
> cheers
> balz
>
> On Fri, Sep 3, 2010 at 4:10 PM, Cedric Staub <cedric.staub at wyona.com
> <mailto:cedric.staub at wyona.com>> wrote:
>
> 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
> --
> Yanel-development mailing list Yanel-development at wyona.com
> <mailto:Yanel-development at wyona.com>
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
>
More information about the Yanel-development
mailing list