log4net.Ext.Json.Net 2.0.8.2

Use Newtonsoft.Json (Json.NET) as a serializer.

Install-Package log4net.Ext.Json.Net -Version 2.0.8.2
dotnet add package log4net.Ext.Json.Net --version 2.0.8.2
<PackageReference Include="log4net.Ext.Json.Net" Version="2.0.8.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add log4net.Ext.Json.Net --version 2.0.8.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Format your Json log with Newtonsoft.Json (Json.NET):

    <appender name="ConsoleAppenderJsonNet" type="log4net.Appender.ConsoleAppender">
        <layout type="log4net.Layout.SerializedLayout, log4net.Ext.Json">
            <renderer type='log4net.ObjectRenderer.JsonDotNetRenderer, log4net.Ext.Json.Net'>
                <DateFormatHandling value="IsoDateFormat" />
                <NullValueHandling value="Ignore" />
                <Formatting value="Indented" />
            </renderer>
            <remove value="message" />
            <member value="messageobject" />
        </layout>
    </appender>

Format your Json log with Newtonsoft.Json (Json.NET):

    <appender name="ConsoleAppenderJsonNet" type="log4net.Appender.ConsoleAppender">
        <layout type="log4net.Layout.SerializedLayout, log4net.Ext.Json">
            <renderer type='log4net.ObjectRenderer.JsonDotNetRenderer, log4net.Ext.Json.Net'>
                <DateFormatHandling value="IsoDateFormat" />
                <NullValueHandling value="Ignore" />
                <Formatting value="Indented" />
            </renderer>
            <remove value="message" />
            <member value="messageobject" />
        </layout>
    </appender>

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.8.2 12,942 4/29/2018
2.0.8.2-ci23366355 188 6/6/2018
2.0.8.2-ci23364087 155 6/6/2018