I did an application that makes use of log4j. Everything works fine, however, when I make a jar of that application and attach it to another application the logging stops working (no log file is created). I think the problem is that this last application also includes another jar (besides mine) that already use log4j. By the way, this other jar is hadoop, and I think it is taking the log context. My log4j properties file is in classpath, as well as in the root of the jar:
log4j.logger.a.b.c=DEBUG, A1
log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.File=my-log.log log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
What can I do to sort this out?
Thanks.