| Summary: | Log4j logging doesn't work anymore | ||
|---|---|---|---|
| Product: | JacORB | Reporter: | na.ais40 |
| Component: | ORB | Assignee: | Mailinglist to track bugs <jacorb-bugs> |
| Status: | CLOSED WORKSFORME | ||
| Severity: | major | CC: | jacorb |
| Priority: | P5 | ||
| Version: | 3.5 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
na.ais40
2015-03-13 07:37:11 UTC
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. Not a BUG, my fault Configuration like this (.org append to logger name) : log4j.logger.org.jacorb=DEBUG,jacorb log4j.additivity.org.jacorb=false instead of : log4j.logger.jacorb=DEBUG,jacorb log4j.additivity.jacorb=false |