I am using log4j and I cannot figure out how to create a log file for specific classes (in my case for security messages).
I want to have one global log where I will log everything (INFO) and some specific package files for debugging, testing and security of some parts of my application.
For example, I want to log only events from LoggerListener (Spring security) in the security.log file and only messages from my cz.flexibla2 * application package to flexibla2.log *, etc.
Thank you for your help.
source
share