开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜