NLog Client Library

I see there was Log4net client library, is it possible to add Coderr.Client.Nlog client library?
Log4net is great, but it still doesn’t support send mail and logging to database for .NET core.
Nlog support them all. Please consider this feature.

I created a package.

Install it from nuget coderr.client.nlog.

Configuration instructions will automatically be shown.

Hello Jonas,
Thanks a lot for creating this Library, I really appreciate it.

I’ve tested out and it doesn’t seems to log any exceptions to Coderr. I’ve even tried to test the Demo but no luck.

Can you help troubleshooting this issue?

Thank you!

Can you post your nlog.config?

Do note that the library will only report log entries that have exceptions included.

Which version of the Coderr server do you have?

I am currently using the CoderrCommunityServerV2.0.2 version, and tested out your demo project Coderr.Client.NLog.Demo on Github.

Here is the Nlog.config:

<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="[]("
      xsi:schemaLocation="[]( NLog.xsd"
      internalLogLevel="Trace" internalLogFile="c:\logs\nlog-internal.log">

    <add assembly="Coderr.Client.Nlog"/>

  <variable name="myvar" value="myvalue"/>

    <target xsi:type="File" name="f" fileName="C:/logs/Coderr.Demo.${shortdate}.log"

            layout="${longdate} ${uppercase:${level}} ${message}" />

    <target name="Coderr" type="Coderr"/>

    <logger name="" minlevel="Debug" writeTo="f" />_
    <logger name="" minlevel="Debug" writeTo="Coderr" />


Thanks for looking into this!

Sorry for the late reply. This slipped my mind.
Are you using the .NET Standard library or the regular .NET 4.x library?

I am using .NET Standard library for core, and WPF application.

Hi Jonas,
Do you have any update on this?
Please do let me know if you need any other info that I can provide.


I’ve done several attempts to be able to reproduce it without success.

The only time I didn’t get it working was when the log4net.config didnt include

    <add assembly="Coderr.Client.NLog"/>

Can you create a sample application where you have reproduced the error?

Hi Jonas,
Sorry for a late response.
So I downloaded the demo from your NLog library (, and update the server url, key, and secret and run the demos.
The Coderr.Client.NLog.Demo.Net452 project will log the error to Coderr server just fine. But Coderr.Client.NLog.Demo project which is .net core project will not log at all.

This is a screenshot of a successful error log that works only for Full .Net Framework.

I am using Visual Studio 2017. Please let me know if there anything else I can provides.
Thanks again for looking into this.