Hi Leos,

You might want to patch  WriteAppender.subAppend().

At 16:12 26.07.2002 +0200, you wrote:
>Hi,
>
>I am interested, if there is any way ho to filter
>out some parts of exception trace.
>
>Eg. I am interested in exceptions in my code,
>other calls are not interesting for me.
>
>See the difference:
>
>2002-07-26 04:03:27,325 ERROR AbcServlet - Cannot display page 
>http://www.abclinuxu.cz:8080/clanky/ViewRelation
>java.lang.Exception: Relation is null!
>  at 
> cz.abclinuxu.servlets.view.ViewRelation.handleRequest(ViewRelation.java:59)
>  at 
> org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:331)
>  at 
> org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:292)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at 
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>  at 
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
>  at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>  at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
>  at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
>  at java.lang.Thread.run(Thread.java:484)
>
>versus
>
>2002-07-26 04:03:27,325 ERROR AbcServlet - Cannot display page 
>http://www.abclinuxu.cz:8080/clanky/ViewRelation
>java.lang.Exception: Relation is null!
>  at 
> cz.abclinuxu.servlets.view.ViewRelation.handleRequest(ViewRelation.java:59)
>  at 
> org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:331)
>  at 
> org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:292)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at java.lang.Thread.run(Thread.java:484)
>
>if I could filter trace of org.apache package.
>
>
>Such feature would be attractive to me, because 90% of my logs
>belong to tomcat :-(
>
>Thanks for your ideas
>
>         Leos
>
>--
>Leos Literak
>http://AbcLinuxu.cz - tady je tucnakum hej!

--
Ceki


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to