log4net : Custom loglevel
Can I know how to create custom loglevel ? it will be great provided with a sample exa开发者_运维知识库mple. I have seen many examples for trace and verbose, but if I want other those how to create.
Thanks in Advance
Regards,
Abhinay
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.
精彩评论