<html>
<head>
<base href="http://www.jacorb.org/bugzilla/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:jacorb@goots.org" title="Nick Cross <jacorb@goots.org>"> <span class="fn">Nick Cross</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Log4j logging doesn't work anymore"
href="http://www.jacorb.org/bugzilla/show_bug.cgi?id=1004">bug 1004</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>jacorb@goots.org
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Log4j logging doesn't work anymore"
href="http://www.jacorb.org/bugzilla/show_bug.cgi?id=1004#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - Log4j logging doesn't work anymore"
href="http://www.jacorb.org/bugzilla/show_bug.cgi?id=1004">bug 1004</a>
from <span class="vcard"><a class="email" href="mailto:jacorb@goots.org" title="Nick Cross <jacorb@goots.org>"> <span class="fn">Nick Cross</span></a>
</span></b>
<pre>I changed the hello demo to exclude slf4j-jdk14 and include slf4j-log4j12 and
simplified your properties to be
--
log4j.rootLogger=DEBUG,jacorb
log4j.logger.jacorb=DEBUG,jacorb
log4j.additivity.jacorb=false
# Logs rotatifs
log4j.appender.jacorb=org.apache.log4j.RollingFileAppender
# Fichier destination
log4j.appender.jacorb.File=/tmp/jacorb.log
log4j.appender.jacorb.ImmediateFlush=true
# Nombre de fichiers de rotation (en plus du fichiers de log)
log4j.appender.jacorb.MaxBackupIndex=10
# Taille maximum avant rotation
log4j.appender.jacorb.MaxFileSize=100000KB
# définition du motif de sortie
log4j.appender.jacorb.layout=org.apache.log4j.PatternLayout
log4j.appender.jacorb.layout.ConversionPattern=%d %5p [%t] (%F\:%L) - %m%n
--
I passed the log4j.properties in via
-Dlog4j.configuration=file:/tmp/log4j.properties and I got some output in
/tmp/jacorb.log e.g.
2015-03-13 11:56:02,455 DEBUG [main] (ORBSingleton.java:199) - Set default
native char codeset to UTF8
If you still have a problem please reopen and ideally provide a test case.
Thanks.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>