C# Class Microsoft.ApplicationInsights.Log4NetAppender.ApplicationInsightsAppender

Inheritance: log4net.Appender.AppenderSkeleton
Mostra file Open project: Microsoft/ApplicationInsights-dotnet-logging Class Usage Examples

Private Properties

Property Type Description
AddLoggingEventProperty void
BuildCustomProperties void
GetSeverityLevel SeverityLevel?
SendException void
SendTrace void

Public Methods

Method Description
ActivateOptions ( ) : void

Initializes the Appender and perform instrumentationKey validation.

Protected Methods

Method Description
Append ( log4net.Core.LoggingEvent loggingEvent ) : void

Append LoggingEvent Application Insights logging framework.

Private Methods

Method Description
AddLoggingEventProperty ( string key, string value, string>.IDictionary metaData ) : void
BuildCustomProperties ( log4net.Core.LoggingEvent loggingEvent, ITelemetry trace ) : void
GetSeverityLevel ( log4net.Core.Level logginEventLevel ) : SeverityLevel?
SendException ( log4net.Core.LoggingEvent loggingEvent ) : void
SendTrace ( log4net.Core.LoggingEvent loggingEvent ) : void

Method Details

ActivateOptions() public method

Initializes the Appender and perform instrumentationKey validation.
public ActivateOptions ( ) : void
return void

Append() protected method

Append LoggingEvent Application Insights logging framework.
protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent Events to be logged.
return void