You can see an example in log4net source code. Look in log4net extensions - they have an example for a TRACE custom log level.

tinhuty he <[EMAIL PROTECTED]> wrote:
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:






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


Reply via email to