Announcement Announcement Module
Collapse
No announcement yet.
How do I set the warning logger on AbstractHandlerExceptionResolver? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I set the warning logger on AbstractHandlerExceptionResolver?

    I'm trying to make the resolveException method of AbstractHandlerExceptionResolver log exceptions by adding this to applicationContext-web.xml

    Code:
    	<bean class="org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver" >
    		<property name="warnLogCategory" value="org.springframework.web"/>
    	</bean>
    but the warnLogger attribute is not being set after the spring context has been initialized.

    What am I doing wrong?
    Last edited by fcalfo; Aug 12th, 2012, 08:11 PM.

  • #2
    Please use [ code][/code ] tags when posting code. You do nothing wrong and it should be set, also make sure you have at least the level WARN (or lower INFO, DEBUG) set for org.springframework.web else you still aren't going to see anything.

    Also make sure that this is in the applicationcontext loaded by the dispatcherservlet not the ContextLoaderListener.

    Comment

    Working...
    X