Announcement Announcement Module
Collapse
No announcement yet.
prevent to display runtime exception Stacktrace in log file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


    • #3
      thanks for your reply

      Comment


      • #4
        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, 03:28 AM.

        Comment

        Working...
        X