NLog.Extensions.AzureTableStorage icon indicating copy to clipboard operation
NLog.Extensions.AzureTableStorage copied to clipboard

Target cannot be found: 'AzureTableStorage'

Open mrichman opened this issue 7 years ago • 0 comments

I get this error Target cannot be found: 'AzureTableStorage' when I enable the target in my NLog.config.

Here are the files I dropped into my application to try to get this working:

  • Microsoft.WindowsAzure.Configuration.dll (1.8.0.0)
  • Microsoft.WindowsAzure.Storage.dll (4.3.0.0)
  • NLog.config
  • NLog.dll (4.3.8)
  • NLog.Extensions.AzureTableStorage.dll (1.1.4.0)

My NLog.config looks like this:

<?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" autoReload="true" internalLogToConsole="true" internalLogLevel="Info">
  <extensions>
    <add assembly="NLog.Extensions.AzureTableStorage" />
  </extensions>
  <targets async="true">
    <target name="trace" xsi:type="Trace" layout="${longdate:universalTime=true} ${logger} ${message}" />
    <target name="azureTableStorage" xsi:type="AzureTableStorage" PartitionKey="${date}.${logger}" RowKey="${guid}" ConnectionString="DefaultEndpointsProtocol=https;AccountName=xxxxxxx;AccountKey=xxxxxxx;EndpointSuffix=core.windows.net" tableName="NLogAzureTest" />
  </targets>
  <rules>
    <logger name="*" minlevel="Trace" writeTo="trace" />
    <logger name="*" minlevel="Info" writeTo="azureTableStorage" />
  </rules>
</nlog>

What am I doing wrong here? Is there a dependency on a specific build of NLog.dll?

mrichman avatar Feb 09 '18 20:02 mrichman