One log file for each class with log4j
Hello
I want create one file for each class in my project. I have 2 paCkages with 2 class.
p1
|--class1_1
|--class1_2
p2
|-- class2_1
|-- class2_2
I wont create the next result with the logs
log/p1
|class1_1.log
|class1_2.log
log/p2
|class2_1.log
|class2_2.log
Well, I don't wont write one appender for each package I wont write a generic code to generate these logs. I thought a solution but i don't know how implement it right
log4j.rootLogger=ALL, fileAppender
log4j.appender.fileAppender=org.apache.log4j.RollingFileAppender
....
log4j.appender.fileAppender.File = log/${PATH TO MY CLASSES}.log
Can anybody help me?

