<PackageReference Include="Microsoft.ApplicationInsights" Version="3.2.0" />

Microsoft.ApplicationInsights.DataContracts.TraceTelemetry

Telemetry type used for log messages. Contains a time and message and optionally some additional metadata. Learn more
public TelemetryContext Context { get; }

Gets the context associated with the current telemetry item.

public string Message { get; set; }

Gets or sets the message text. For example, the text that would normally be written to a log file line.

public IDictionary<string, string> Properties { get; }

Gets a dictionary of application-defined property names and values providing additional information about this trace. Learn more

public string Sequence { get; set; }

Gets or sets the value that defines absolute order of the telemetry item.

public SeverityLevel? SeverityLevel { get; set; }

Gets or sets Trace severity level.

public DateTimeOffset Timestamp { get; set; }

Gets or sets date and time when event was recorded.

public TraceTelemetry()

Initializes a new instance of the TraceTelemetry class.

public TraceTelemetry(string message)

Initializes a new instance of the TraceTelemetry class.

public TraceTelemetry(string message, SeverityLevel severityLevel)

Initializes a new instance of the TraceTelemetry class.