@@ -10,6 +10,10 @@ portType: tcp
1010tags : Logs, Dotnet, .NET, Log4net
1111---
1212
13+ Log4net is a logging platform & framework for .NET that uses hierarchical logging. This allows users to
14+ selectively control which log messages are sent to a particular output target so as to not overwhelm the
15+ system.
16+
1317Follow the steps below to send your observability data to Logit.io
1418
1519<Steps >
@@ -25,18 +29,19 @@ Follow the steps below to send your observability data to Logit.io
2529
2630 ``` ps copy
2731 Install-Package log4net
28- Install-Package log4net. Logit
32+ Install-Package Logit.Log4Net
2933 ```
3034
3135 ### Configuring log4net
3236
3337 Configuring log4net can be done in your application ` app.config ` or ` web.config ` or specific log4net configuration file.
3438
3539 ``` xml copy showLineNumbers
36- <appender name =" LogitAppender" type =" log4net.Logit.LogitAppender, log4net.Logit" >
37- <apikey value =" @apikey" />
40+ <appender name =" LogitAppender" type =" Logit.Log4Net.LogitAppender, Logit.Log4net" >
41+ <Token value =" @apikey" />
42+ <apiEndpoint value =" @logitApiEndpoint" />
3843 <layout type =" log4net.Layout.PatternLayout" >
39- <conversionpattern value =" %property{log4net:HostName} %-5p % d %5rms %-22.22c{1} %-18.18M - %m%n" />
44+ <param name = " ConversionPattern " value =" %d %logger %level% %m%n" />
4045 </layout >
4146 </appender >
4247
@@ -60,10 +65,6 @@ Follow the steps below to send your observability data to Logit.io
6065
6166## Log4Net Logger Overview
6267
63- Log4net is a logging platform & framework for [ .NET] ( /integrations/dotnet ) that uses
64- hierarchical logging. This allows users to selectively control which log messages are sent to a
65- particular output target so as to not overwhelm the system.
66-
6768Log4net is often mentioned in association with [ Serilog] ( /integrations/serilog ) &
6869[ NLog] ( /integrations/nlog ) as all three provide frameworks suitable for shipping
6970data from .Net to an external log management service.
0 commit comments