Somebody can help me, please.


Hello,

My name is Jacilene and I live in Aracaju/Sergipe - Brazil.
I work at Company with Java, XML, EJB and we are testing Log4j to include it
in our applications.
I have used the tests in JBuilder and I donīt have problems, but when I use
in application Server JBoss it happens some problems.
I have read documentation in Jakarta about Log4j and I get to do some tests,
but I have problem when I put Lo4j in JBoss using the appender
RollingFileAppender and parameter MaxFileSize. When it needs to create other
file, because it reaches 200Kb, it happens an error and repeats this error
in file until service is stopped.
I used configuration file XML and method
DOMConfigurator.configureAndWatch( "logger.config.xml" );
Other problem, when configuration file has been modified during execution
the application, it doesnīt ask and I have to stop the service.

thanks a lot for help us,
Jacilene Silva Torres
Banese - Banco do Estado de Sergipe
Brasil - Sergipe

=>> Error - when it reaches file size 200Kb
[Verifier] log4j: rolling over count=256056
[Verifier] log4j: rolling over count=256056
[Verifier] log4j: rolling over count=256274
[Verifier] log4j: rolling over count=256056
[Verifier] log4j: rolling over count=256274
[Verifier] log4j: rolling over count=256537

configuration = file.xml
 <appender name="STDOUT" class="org.apache.log4j.RollingFileAppender">
           <param name="File" value="logs/AppServerLogOut.txt" />
           <param name="MaxFileSize" value="200KB" />
           <param name="MaxBackupIndex" value="5" />
           <param name="Threshold" value="INFODEBUG"/>
          <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern"
      value="Debug:[%d{dd MMM yyyy HH:mm:ss,SSS}- %t ]--(%x)--%m"/>

           </layout>
 </appender>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to