You can define a new level in the config file.

<log4net>

  <level>
    <name value="HIGH" />
    <value value="80000" />
  </level>

  ...

</log4net> 

You can then refer to the level in the rest of the config file.
Levels have a numeric value ERROR is 70000. OFF is Int32.MaxValue.
Therefore 80000 is between ERROR and OFF.

Cheers,
Nicko

> -----Original Message-----
> From: Cheng [mailto:[EMAIL PROTECTED] 
> Sent: 23 February 2006 17:11
> To: Log4NET User; [EMAIL PROTECTED]
> Subject: custom level
> 
> Is there any easy way to add a new level between ERROR and OFF?
> 
> Thanks
> 

Reply via email to