cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: svn commit: r161175 - cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/log/CocoonLogFormatter.java
Date Wed, 13 Apr 2005 12:59:11 GMT
Leszek Gawron wrote:
> Vadim Gritsenko wrote:
> 
>> lgawron@apache.org wrote:
>>
>>>
>>> Extend CocoonLogFormatter with the ability to log request query 
>>> string prepended with '?' character.
>>
>>
>> Nice! I don't get one thing though: why you are adding '?' in the code 
>> when you can easily have it in the format string?
>>
>> <format type="cocoon">%5.5{priority} %{time} [%{category}] 
>> (%{uri}?%{query}) %{class:short}: %{message}\n</format>
> 
> because if you do that:
> 
> DEBUG   (2005-04-13) 13:07.01:812 [] (Unknown-URI?)
>                                       ^^^^^^^^^^^^
>  Unknown-Thread/LoggerSwitch.SwitchingLogger: added logger for category
> 
> looks a little bit funny :). It's a stupid hack I know.

Ok :-)

Vadim

Mime
View raw message