4 Replies Latest reply on Oct 24, 2007 9:25 AM by Jacob Orshalick

    How to exclude specific exceptions from logging

    Thomas Gerhards Newbie


      How would one exclude an exception from being written into the servers log file that is used for user navigation like org.jboss.seam.security.NotLoggedInException ?

      The exception is thrown when the user calls a bean method that is annoted with


      and in pages.xml I simply have

      <exception class="org.jboss.seam.security.NotLoggedInException">
       <message severity="WARNING">#{messages.org.jboss.seam.NotLoggedIn}</message>
       <redirect view-id="/login.xhtml" />

      so that the user may log in. Without the facility to exclude the exception from getting logged I would have this in the log file all over the place...