title: sending errors and exceptions through emails in apache tomcat server start
body: <p>I have used apache-tomcat-7.0.25 and started a local instance on my system.
  i have to send errors and exceptions through emails to various people which i have found in the log files.
  i have the config files server.xml , web.xml, tomcat-users.xml , context.xml , catalina.properties files and also a logging.properties file.</p>
  
  <p>the logging.properties file consists of the following code.</p>
  
  <pre><code>handlers = 1catalina.org.apache.juli.FileHandler, \
             2localhost.org.apache.juli.FileHandler, \
             3manager.org.apache.juli.FileHandler, \
             java.util.logging.ConsoleHandler
  
  .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
  
  ############################################################
  # Handler specific properties.
  # Describes specific configuration info for Handlers.
  ############################################################
  
  1catalina.org.apache.juli.FileHandler.level = FINE
  1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
  1catalina.org.apache.juli.FileHandler.prefix = catalina.
  
  2localhost.org.apache.juli.FileHandler.level = FINE
  2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
  2localhost.org.apache.juli.FileHandler.prefix = localhost.
  
  3manager.org.apache.juli.FileHandler.level = FINE
  3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
  3manager.org.apache.juli.FileHandler.prefix = manager.
  3manager.org.apache.juli.FileHandler.bufferSize = 16384
  
  java.util.logging.ConsoleHandler.level = FINE
  java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
  
  
  ############################################################
  # Facility specific properties.
  # Provides extra control for each logger.
  ############################################################
  
  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = \
     2localhost.org.apache.juli.FileHandler
  
  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = \
     3manager.org.apache.juli.FileHandler
  
  # For example, set the org.apache.catalina.util.LifecycleBase logger to log
  # each component that extends LifecycleBase changing state:
  #org.apache.catalina.util.LifecycleBase.level = FINE
  </code></pre>
  
  <p>How to redirect it to a mail when there is any error or exceptions?</p>