tags:

views:

13

answers:

1

Hi,

Can I know how to create custom loglevel ? it will be great provided with a sample example. I have seen many examples for trace and verbose, but if I want other those how to create.

Thanks in Advance

Regards,

Abhinay

A: 

log4net internally defines already the following levels:

Emergency, Fatal, Alert, Critical, Severe, Error, Warn, Notice, Info, Debug, Fine, Trace, Finer, Verbose, Finest

If these are enough then you can use them as you would use for instance the Verbose level.

Stefan Egli