Of course you can do this.
Set either the level of the logger to the desired value:
<level value="warning"/>
or set the threshold tag of an appender:
<param name="Threshold" value="WARNING"/>
or define a filter withing an appender:
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<param name="LevelMin" value="warn"/>
<param name="LevelMax" value="fatal"/>
<param name="AcceptOnMatch" value="false"/>
</filter>
Heri
> -----Original Message-----
> From: Benjamin David [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 01, 2005 10:48 AM
> To: [email protected]
> Subject: Specifying logging levels independently
>
>
> Hello,
> I am currently using log4j and I have a new requirement for
> specifying
> logging levels independently,
> for instance, I would like to log only ERROR and WARNING.
> As far as I am aware log4j does not support this.
> Is a workaround available for this ?
> Thanks,
> Ben
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]