You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by lg...@apache.org on 2005/04/25 16:33:22 UTC
svn commit: r164581 - /cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
Author: lgawron
Date: Mon Apr 25 07:33:22 2005
New Revision: 164581
URL: http://svn.apache.org/viewcvs?rev=164581&view=rev
Log:
use rootThrowable instead of throwable in cocoon.log
Modified:
cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
Modified: cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/webapp/WEB-INF/logkit.xconf?rev=164581&r1=164580&r2=164581&view=diff
==============================================================================
--- cocoon/trunk/src/webapp/WEB-INF/logkit.xconf (original)
+++ cocoon/trunk/src/webapp/WEB-INF/logkit.xconf Mon Apr 25 07:33:22 2005
@@ -67,15 +67,16 @@
| Note that newlines are *not* automatic: you have to specify the
| newline as '\n' or everything will appear on a single line!
|
- | The first format below is less verbose because it won't print out
- | the error stacktrace (which tend to be very verbose and for little value).
- | If you need the stacktraces, uncomment the second format below.
+ | The first format below is verbose: it includes error stacktraces.
+ | If you want something even more verbose use %{throwable} which will
+ | show a full chain of exceptions. Using the second format won't
+ | output stacktraces at all.
|
| Please mind that the default format logs request uri along with
| query string. This may log confidential data (passwords etc.).
+-->
- <format type="cocoon">%5.5{priority} %{time} [%{category}] (%{uri}%{query}) %{thread}/%{class:short}: %{message}\n%{throwable}</format>
- <!--format type="cocoon">%5.5{priority} %{time} [%{category}] (%{uri}%{query}) %{thread}/%{class:short}: %{message}\n%{throwable}</format-->
+ <format type="cocoon">%5.5{priority} %{time} [%{category}] (%{uri}%{query}) %{thread}/%{class:short}: %{message}\n%{rootThrowable}</format>
+ <!--format type="cocoon">%5.5{priority} %{time} [%{category}] (%{uri}%{query}) %{thread}/%{class:short}: %{message}\n%</format-->
<!--+
| <append> if set to 'true' will make cocoon append the events
Re: svn commit: r164581 - /cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Jorg Heymans wrote:
>
> lgawron@apache.org wrote:
>
>> Author: lgawron
>> Date: Mon Apr 25 07:33:22 2005
>> New Revision: 164581
>>
>> URL: http://svn.apache.org/viewcvs?rev=164581&view=rev
>> Log:
>> use rootThrowable instead of throwable in cocoon.log
>>
>> Modified:
>> cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
>>
>> Modified: cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
>> URL:
>> http://svn.apache.org/viewcvs/cocoon/trunk/src/webapp/WEB-INF/logkit.xconf?rev=164581&r1=164580&r2=164581&view=diff
>>
>> ==============================================================================
>>
>> --- cocoon/trunk/src/webapp/WEB-INF/logkit.xconf (original)
>> +++ cocoon/trunk/src/webapp/WEB-INF/logkit.xconf Mon Apr 25 07:33:22 2005
>> @@ -67,15 +67,16 @@
>> | Note that newlines are *not* automatic: you have to
>> specify the
>> | newline as '\n' or everything will appear on a single line!
>> |
>> - | The first format below is less verbose because it won't
>> print out
>> - | the error stacktrace (which tend to be very verbose and
>> for little value).
>> - | If you need the stacktraces, uncomment the second format
>> below.
>> + | The first format below is verbose: it includes error
>> stacktraces.
>> + | If you want something even more verbose use %{throwable}
>> which will
>
> ^^^^^^^^^^^^^
>
>> + | show a full chain of exceptions. Using the second format
>> won't
>> + | output stacktraces at all.
>> |
>
>
> Shouldn't the comment also say "rootThrowable" instead of "throwable" ?
No. It correctly states that "throwable" is more verbose than default,
"rootThrowable".
Vadim
Re: svn commit: r164581 - /cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
Posted by Leszek Gawron <lg...@mobilebox.pl>.
Jorg Heymans wrote:
>
> lgawron@apache.org wrote:
>
>> Author: lgawron
>> Date: Mon Apr 25 07:33:22 2005
>> New Revision: 164581
>>
>> URL: http://svn.apache.org/viewcvs?rev=164581&view=rev
>> Log:
>> use rootThrowable instead of throwable in cocoon.log
>>
>> Modified:
>> cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
>>
>> Modified: cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
>> URL:
>> http://svn.apache.org/viewcvs/cocoon/trunk/src/webapp/WEB-INF/logkit.xconf?rev=164581&r1=164580&r2=164581&view=diff
>>
>> ==============================================================================
>>
>> --- cocoon/trunk/src/webapp/WEB-INF/logkit.xconf (original)
>> +++ cocoon/trunk/src/webapp/WEB-INF/logkit.xconf Mon Apr 25 07:33:22 2005
>> @@ -67,15 +67,16 @@
>> | Note that newlines are *not* automatic: you have to
>> specify the
>> | newline as '\n' or everything will appear on a single line!
>> |
>> - | The first format below is less verbose because it won't
>> print out
>> - | the error stacktrace (which tend to be very verbose and
>> for little value).
>> - | If you need the stacktraces, uncomment the second format
>> below.
>> + | The first format below is verbose: it includes error
>> stacktraces.
>> + | If you want something even more verbose use %{throwable}
>> which will
>
> ^^^^^^^^^^^^^
>
>> + | show a full chain of exceptions. Using the second format
>> won't
>> + | output stacktraces at all.
>> |
>
>
> Shouldn't the comment also say "rootThrowable" instead of "throwable" ?
I think its ok. The default is rootThrowable. It is verbose but if you
want something even more verbose use %{throwable} which will print full
stacktrace chain.
--
Leszek Gawron lgawron@mobilebox.pl
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65
Re: svn commit: r164581 - /cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
Posted by Jorg Heymans <jh...@domek.be>.
lgawron@apache.org wrote:
> Author: lgawron
> Date: Mon Apr 25 07:33:22 2005
> New Revision: 164581
>
> URL: http://svn.apache.org/viewcvs?rev=164581&view=rev
> Log:
> use rootThrowable instead of throwable in cocoon.log
>
> Modified:
> cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
>
> Modified: cocoon/trunk/src/webapp/WEB-INF/logkit.xconf
> URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/webapp/WEB-INF/logkit.xconf?rev=164581&r1=164580&r2=164581&view=diff
> ==============================================================================
> --- cocoon/trunk/src/webapp/WEB-INF/logkit.xconf (original)
> +++ cocoon/trunk/src/webapp/WEB-INF/logkit.xconf Mon Apr 25 07:33:22 2005
> @@ -67,15 +67,16 @@
> | Note that newlines are *not* automatic: you have to specify the
> | newline as '\n' or everything will appear on a single line!
> |
> - | The first format below is less verbose because it won't print out
> - | the error stacktrace (which tend to be very verbose and for little value).
> - | If you need the stacktraces, uncomment the second format below.
> + | The first format below is verbose: it includes error stacktraces.
> + | If you want something even more verbose use %{throwable} which will
^^^^^^^^^^^^^
> + | show a full chain of exceptions. Using the second format won't
> + | output stacktraces at all.
> |
Shouldn't the comment also say "rootThrowable" instead of "throwable" ?
Jorg