Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.23 KB

File metadata and controls

31 lines (26 loc) · 1.23 KB

RedBear.Log4View.AzureServiceBus.Target

An NLog target for use with our Log4View Azure Service Bus plugin.

Build status

Install via NuGet:

Install-Package RedBear.Log4View.AzureServiceBus.Target

Then update your config file as follows taking care to include your Service Bus connection string and topic name:

  <configSections>
     <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
  </configSections>
  <nlog>
    <extensions>
      <add assembly="RedBear.Log4View.AzureServiceBus.Target"/>
    </extensions>
    <targets>
      <target name="buffer" type="BufferingWrapper" bufferSize="100" flushTimeout="1000">
        <target name="l4v" type="Log4ViewTarget" ConnectionString="Endpoint=sb://xxxx.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=xxxx" Topic="l4v" />
      </target>
    </targets>
    <rules>
      <logger name="*" minLevel="Trace" writeTo="buffer"/>
    </rules>
  </nlog>