[Yanel-dev] Logging in Yanel

Michael Wechner michael.wechner at wyona.com
Fri Sep 3 17:35:40 CEST 2010


Cedric Staub 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(), ...
>   

It's WARN, see YANEL_TRUNK/conf/log4j.properties


>   
>> 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?
>   

correct ;-)  Please feel free to patch such occurences


>   
>> 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.
>   

yes

Thanks

Michael
> Cheers
> Cedric
>   



More information about the Yanel-development mailing list