Installing log4net and Logit appender.

Install-Package log4net
Install-Package log4net.Logit

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" />

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

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.