【发布时间】:2016-06-23 13:50:42
【问题描述】:
一切都记录得很好,除了它记录的 2 列我认为导致 Azure 存储资源管理器 在通过应用程序排序时吓坏了。见下图。
谁能解释一下 Timestamp 和 LogTimeStamp 之间的区别是什么?
当有大量条目时,这里的排序会变得非常复杂,我缺少日志条目。
查看我当前配置文件的示例
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- include this assembly as an NLog extension -->
<extensions>
<add assembly="NLog.Extensions.AzureTableStorage"/>
</extensions>
<!-- set up a an azure storage table target -->
<targets>
<target name="AzureTableStorage"
xsi:type="AzureTableStorage"
PartitionKey="${date}.${logger}"
RowKey="${guid}"
ConnectionString="UseDevelopmentStorage=true"
tableName="Bootloader" />
</targets>
<rules>
<!-- set up a rule to log to the azure storage target! -->
<logger name="*" minlevel="Trace" writeTo="AzureTableStorage" />
</rules>
</nlog>
【问题讨论】:
标签: c# azure logging nlog azure-table-storage