This discussion is archived
3 Replies Latest reply: May 7, 2007 7:45 AM by 807606 RSS

Logging only "INFO" level in Log4j

807606 Newbie
Currently Being Moderated
m trying to log only INFO level messages and send them to the File Appender.Can anyone plz help me out .I have used
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<param name="LevelMin" value="INFO"/>
<param name="LevelMax" value="INFO"/>
The output prints only the INFO level messages but with error:
log4j:ERROR Parsing error on line 24 and column 14
log4j:ERROR The content of element type "appender" must match "(errorHandler?,param*,layout?,filter*,appender-ref*)".
The line 24 in xml configuration is: </appender>