Results 1 to 4 of 4

Thread: prevent to display runtime exception Stacktrace in log file

  1. #1
    Join Date
    May 2009
    Posts
    5

    Exclamation prevent to display runtime exception Stacktrace in log file

    we are throwing business runtime exceptions from application code(filter class & Blogic class),but we want to prevent those business runtime exceptions from getting registered into log file.

    Is there any way to to this?
    any response with code samples are greatly appreciated

    Thank's
    Rojiwadiya Dinesh

  2. #2

    Default

    What gets written to your log files depends on the configuration of your logging library. Please check the documentation of the logging library you're using.
    Tareq Abedrabbo

    My Twitter
    My Blog

  3. #3
    Join Date
    May 2009
    Posts
    5

    Default

    thanks for your reply

  4. #4
    Join Date
    May 2009
    Posts
    5

    Default

    I am using log4j for logging,and using AoP interceptor for both Blogic and Filter Class ,Iam able to suppress the business runtime exception stacktrace for Blogic class,but same thing is not working with filter class

    I have used aop pointcut for javax.servlet.Filter interface as shown below
    Code:
    <aop:pointcut id="filterBean"   expression="execution(void  javax.servlet.Filter.*(. .))"/>
    <aop:advisor 
             pointcut-ref="filterBean" 
             advice-ref="blogicLoggingInterceptor"/>
    blogicLoggingInterceptor bean is common for both Blogic and Filter Class

    why the same code is not working for Filter Class
    Is it possible for filter class to prevent runtime exception stacktrace from getting registered into log file ?

    any feedbacks are greatly appreciated
    Last edited by drojiwadiya; May 27th, 2009 at 02:28 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •