Hello,
I'm writing an application that consists of several maven modules. All of them have to log stuff to their own log files. I created a log4j.properties file in the main/resources folder of each module. Now when I start the application from one of the modules, it writes everything to the log file of that module. I wondered if this was just because it might have taken the root-dir from that start-module and used that to save the log files, but when I create an appender for just that start-module (using category in the log4j properties) and no rootLogger it gives me an error about classes in the other modules that can't find their appenders, which indicates the log4j.properties files in each of those modules isn't found or read. Anyone any ideas how to solve this and make those modules use those properties files, or do I have to put all the appenders in one big log4j.properties file, causing all the logs to appear in the root folder of that start-module instead of the root folders of those other modules?
I hope the question is clear enough to understand, otherwise feel free to ask for details.