Log one priority level using log4j

Hello,

May l know how to log only 1 level message to a log file? For example i just want to log the com.xxx package in INFO level to a log file, greater than this level not going log. Or I just want to log only ERROR level to a log file, may i know how to configure the log4j.xml to make it works. Thanks.

Eng Ho

[331 byte] By [sharpe_leea] at [2007-10-1 23:52:08]
# 1
You could try usind a LevelMatchFilter or a LevelRangeFilter
Shiggya at 2007-7-15 15:43:38 > top of Java-index,Archived Forums,Debugging Tools and Techniques...