Step 1 - Install

Installing log4net and Logit appender.

Install-Package log4net
Install-Package log4net.Logit
Step 2 - Configuring log4net

Configuring log4net can be done in your application app.config or web.config or specific log4net configuration file.

<appender name="LogitAppender" type="log4net.Logit.LogitAppender, log4net.Logit">
<apikey value="your-api-key" />
<layout type="log4net.Layout.PatternLayout">
    <conversionpattern value="%property{log4net:HostName} %-5p %d %5rms %-22.22c{1} %-18.18M - %m%n" />
</layout>
</appender>

<root>
    <level value="ALL" />
    <appender-ref ref="LogitAppender" />
</root>

log4net is a fully featured logging framework and has many other capabilities that are not detailed here, please see the log4net Documentation for more information.

Ready to get going?

Try our 14 day free trial

No commitment and no catches

Create Free Trial