4 Replies Latest reply on Oct 24, 2007 9:25 AM by jacob.orshalick

    How to exclude specific exceptions from logging

    junkie

      Hi,

      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

      @Restrict("#{identity.loggedIn}")

      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" />
      </exception>


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

      Thanks!