[Yanel-dev] Logging in Yanel

Balz Schreier balz.schreier at gmail.com
Fri Sep 3 16:22:46 CEST 2010


I thought that as well because the log4j.properties file contains
log4j.rootCategory=3DWARN, A1

I added now a specific line at the end so that the Zwischengas classes are
logged with INFO:
log4j.logger.com.zwischengas=3DINFO

cheers
balz

On Fri, Sep 3, 2010 at 4:10 PM, Cedric Staub <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 w=
hy
> > 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
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010090=
3/7d8cfc49/attachment.htm


More information about the Yanel-development mailing list