Log4j - log file per package
I am using log4j and I cant figure out, how to create 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 package specific log files for debugging, testing and security of some parts of my app.
For instance I want to log only events from LoggerListener (Spring security) to file security.log, and only messages from my apps package cz.flexibla2 *to flexibla2.log* etc.
Th开发者_开发问答anks for your help.
精彩评论