I am currently creating a system that can have modules (think of them as plugins), where each one of them can have their own log, dedicated.
I would like to use the
I'm assuming you want your module management code define the logger configuration, right? If so, you may want to take a look at this portion of the manual which talks about extending LoggerConfig which based on what your asking is what I think you are looking for.
http://logging.apache.org/log4j/2.x/manual/extending.html
For what it's worth, I've been involved in large plug-in based systems before (using OSGi) and we honestly haven't taken this route. It's usually easier to just grep the class or package you are interested in from a single log file.