开发者

log4net : Custom loglevel

开发者 https://www.devze.com 2023-01-16 16:44 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号