Declarative Configuration

To configure an exception handler declaratively, add the cacheExceptionHandlerFactory element to ehcache.xml as shown in the following example:

<cache ...> 
 <cacheExceptionHandlerFactory 
   class="net.sf.ehcache.exceptionhandler.CountingExceptionHandlerFactory" 
   properties="logLevel=FINE"/> 
</cache>