0

I have an application with a number of supporting JARs that also have logging (log4j2.properties) files in them. Do I need to code entries in the main JAR's log4j.properties for all the different loggers in the different JARs in the main log4j.properties file, or does each log4j.properties file handle the code in that particular JAR? How do I handle the log4j.properties in the supporting JARs?

This is the error I get where a company common jar is throwing this error. I don't know what to do.

log4j:WARN No appenders could be found for logger (com.mycompany.common.properties.AbstractPropertyReader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

This application turns into a runnable JAR.

I found lots of examples of log4j.properties config, but I can't find one that addresses this. That's probably because it's so simple only I am the one who can't see it.

I hope this makes sense.

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
Davidson
  • 1,064
  • 3
  • 20
  • 35

0 Answers0