【发布时间】:2015-05-08 22:38:48
【问题描述】:
我有 log4net 设置,就像在示例中一样。在我的配置文件中,我有:
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
appender 配置的设置就像它在 log4net 站点上显示的 MS SQL Server 一样,由<log4net> 包围。 http://logging.apache.org/log4net/release/config-examples.html
在 AssemblyInfo.cs 我有:
[assembly: log4net.Config.XmlConfigurator]
然而,我的[dbo].[Log] 表中没有显示任何内容。
我尝试使用跟踪调试文本文件,但没有出现错误。
【问题讨论】:
标签: log4net log4net-configuration log4net-appender