C# Class Microsoft.ApplicationInsights.NLogTarget.ApplicationInsightsTarget

Inheritance: TargetWithLayout
Afficher le fichier Open project: Microsoft/ApplicationInsights-dotnet-logging Class Usage Examples

Private Properties

Свойство Type Description
BuildPropertyBag void
GetSeverityLevel SeverityLevel?
SendException void
SendTrace void

Méthodes publiques

Méthode Description
ApplicationInsightsTarget ( ) : System

Initializers a new instance of ApplicationInsightsTarget type.

Méthodes protégées

Méthode Description
InitializeTarget ( ) : void

Initializes the Target and perform instrumentationKey validation.

Write ( LogEventInfo logEvent ) : void

Send the log message to Application Insights.

Private Methods

Méthode Description
BuildPropertyBag ( LogEventInfo logEvent, ITelemetry trace ) : void
GetSeverityLevel ( NLog.LogLevel logEventLevel ) : SeverityLevel?
SendException ( LogEventInfo logEvent ) : void
SendTrace ( LogEventInfo logEvent ) : void

Method Details

ApplicationInsightsTarget() public méthode

Initializers a new instance of ApplicationInsightsTarget type.
public ApplicationInsightsTarget ( ) : System
Résultat System

InitializeTarget() protected méthode

Initializes the Target and perform instrumentationKey validation.
Will throw when is not set.
protected InitializeTarget ( ) : void
Résultat void

Write() protected méthode

Send the log message to Application Insights.
If is null.
protected Write ( LogEventInfo logEvent ) : void
logEvent NLog.LogEventInfo
Résultat void