答案 0 :(得分:1)
请告诉我您是否可以使用account_name / account_key。
正如我在上一篇文章中提到的,在app.config->中提供表名/ account_name / account_key:
<configuration>
<configSections>
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<log4net>
<appender name="AzureLogAppender" type="Log4NetAzureTables.AzureLogAppender, Log4NetAzureTables" >
<param name="tableName" value="your table name" />
<param name="accountName" value="your account" />
<param name="accountKey" value="your account key" />
</appender>
<root>
<level value="ALL" />
<appender-ref ref="AzureLogAppender" />
</root>
</log4net>
</configuration>