logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tinhuty he" <tinh...@hotmail.com>
Subject Custom level usage
Date Wed, 24 May 2006 14:56:32 GMT
I am using the version 1.2.10. I am not quite sure how to use the custom 
level. In the previous email I knew that I have to define a custom level in 
config file as follows:

<level>
  <name value="ACTIVITY" />
  <value value="40000" />
</level>

I define a log in my class as follows:

protected static readonly ILog log = 
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

Now how do I log a message with "ACTIVITY" level in my code?

Thanks.

___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


Mime
View raw message