How to write logs in to a file

Hi ,

I want to write logs to a different files,using diffrent logger levels,

that is if i specify DEBUG in the Log4J.props file it should write one file,

if i specify the INFO it should write to another file,like that i need to write different files to different levels,

Please help how to configure Log4J.properites file

Thanks

crr

[375 byte] By [crra] at [2007-10-3 11:50:54]
# 1
Hi, You can do this by setting log4j.rootCategory in props file. eg: log4j.rootCategory=INFO, LOGFILE Cheers, J_M
Jai_Ma at 2007-7-15 14:24:48 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2
visit this link: http://wiki.apache.org/logging-log4j/_LogToAppenderByLevel_
Jai_Ma at 2007-7-15 14:24:48 > top of Java-index,Archived Forums,Debugging Tools and Techniques...