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?

[751 byte] By [a_potroa] at [2007-11-26 21:25:54]
# 1
Read the log4j docs or search google. This is a Java forum.
CarrieHunta at 2007-7-10 3:06:21 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2
thanks for nothing.
a_potroa at 2007-7-10 3:06:21 > top of Java-index,Archived Forums,Debugging Tools and Techniques...