[jacorb-bugs] [Bug 1004] Log4j logging doesn't work anymore

bugzilla-daemon at jacorb.org bugzilla-daemon at jacorb.org
Fri Mar 13 13:02:15 CET 2015


http://www.jacorb.org/bugzilla/show_bug.cgi?id=1004

Nick Cross <jacorb at goots.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jacorb at goots.org
         Resolution|---                         |WORKSFORME

--- Comment #1 from Nick Cross <jacorb at goots.org> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-bugs/attachments/20150313/6aaaed05/attachment.html>


More information about the jacorb-bugs mailing list