Log4net转换模式列表 [英] List of Log4net Conversion Patterns

查看:96
本文介绍了Log4net转换模式列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可用于log4net的所有转换模式的完整列表?我什至无法在源代码中找到它们.

Is there a comprehensive list of all the conversion patterns available for log4net? I can't even find them in the source code.

我所找到的只是这个;不应该有更多的模式吗?例如,如何获取托管应用程序的名称?

All I have found is this; shouldn't there be more patterns? For example, how would I get the name of the hosting application?

另外,我如何添加自己的图案?

Also, how can I add my own patterns?

作为示例,以下是可比较的列表,但对于 nlog .

As an example here is the comparable list but for nlog.

修改: 我找到了应用程序名称的模式; [Application].但是我仍然在寻找母亲.至少有人可以指出我指向管理这些内容的源代码中的课程吗?也许我可以从中找到列表.

I have found the Pattern for application name; it's [Application]. But I'm still looking for the mother-load. Can someone at least point me to the class in the source that manages these? Maybe I could find the list from that.

推荐答案

看起来该链接已失效.

我在Waybacktimemachine中找到了它,并将其发布到了我的博客中.

I found it in the Waybacktimemachine and posted it to my blog.

http://spoiledtechie.com/post/2015/11/19/Conversion-Patterns-for-Log4Net.aspx

在SO上发布可能太过分了.如果我错了,如果每个人都同意它还不错的话,我会很乐意在这里发布.

It might be too much to post here on SO. If I am wrong, I will happily post here if everyone agrees that its not too bad.

这篇关于Log4net转换模式列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆