A log4net appender that writes to an AWS Kinesis stream.
Get the NuGet package: log4net.Ext.AwsKinesis
The library takes advantage of the AWS and log4net configurations. A basic setup might look like the following:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
<section name="aws" type="Amazon.AWSSection, AWSSDK" />
</configSections>
<aws profileName="development" />
<log4net>
<appender name="AwsKinesis" type="log4net.Ext.Appender.AwsKinesisAppender, log4net.Ext.AwsKinesis">
<streamName value="MyStream" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message" />
</layout>
</appender>
<root>
<appender-ref ref="AwsKinesis" />
</root>
</log4net>
</configuration>
Configuration Links: