logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nandan S <nandan.shantha...@hp.com>
Subject how to use errorHandler
Date Tue, 25 Feb 2014 08:21:43 GMT
Hi,
    I getting following error while using the errorHandler. Request help in
proper usage of errorHandler.
-----------------------------------------------------------------------------------------
log4cxx: Could not instantiate class
[org.apache.log4j.varia.FallbackErrorHandler].
log4cxx: Class not found: org.apache.log4j.varia.FallbackErrorHandler
-----------------------------------------------------------------------------------------

Following is my configuration file

<?xml version="1.0" encoding="UTF-8" ?>
 <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
 
  
  <appender name="appxConsoleAppender"
class="org.apache.log4j.ConsoleAppender">  
    
    
        <layout class="org.apache.log4j.PatternLayout">
            
        </layout>
  </appender>

  
  
  <appender name="appxNormalAppender" class="org.apache.log4j.FileAppender">
    
    
    
    <layout class="org.apache.log4j.PatternLayout">
      
    </layout>

    <errorHandler class="org.apache.log4j.varia.FallbackErrorHandler">
      <root-ref/>
      <appender-ref ref="appxConsoleAppender"/>
    </errorHandler>

  </appender>

  <root>
        <priority value="TRACE" />
        <appender-ref ref="appxNormalAppender"/> 
  </root>

</log4j:configuration>



--
View this message in context: http://apache-logging.6191.n7.nabble.com/how-to-use-errorHandler-tp44799.html
Sent from the Log4cxx - Users mailing list archive at Nabble.com.

Mime
View raw message