Skip to content
NLogPublic

About

NLog Target for writing to Microsoft Message Queue - MSMQ

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

NLog.MSMQ

NLog MSMQ Target for writing to Microsoft Message Queue (MSMQ)

Version CI codecov

How to install

  1. Install the package

    Install-Package NLog.MSMQ or in your csproj:

    <PackageReference Include="NLog.MSMQ" Version="6.*" />
  2. Add to your nlog.config:

    <extensions>
        <add assembly="NLog.MSMQ"/>
    </extensions>

    Alternative register from code using fluent configuration API:

    LogManager.Setup().SetupExtensions(ext => {
       ext.RegisterTarget<NLog.Targets.MessageQueueTarget>();
    });

Example NLog.config file

Example of using the target "MSMQ" in nlog.config-file:

<nlog>
    <extensions>
        <add assembly="NLog.MSMQ"/>
    </extensions>
    <targets>
        <target name="msmq" xsi:type="MSMQ" layout="${message}"  />
    </targets>
    <rules>
        <logger minLevel="Info" writeTo="msmq" />
    </rules>
</nlog>

About

NLog Target for writing to Microsoft Message Queue - MSMQ

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages