Class TraceTelemetry
java.lang.Object
com.microsoft.applicationinsights.telemetry.BaseTelemetry
com.microsoft.applicationinsights.telemetry.TraceTelemetry
- All Implemented Interfaces:
Telemetry
Telemetry type used for log messages.
-
Constructor Summary
ConstructorDescriptionTraceTelemetry
(String message) TraceTelemetry
(String message, SeverityLevel severityLevel) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected MessageData
getData()
Gets the message text.void
setMessage
(String message) Sets the message text.void
setSeverityLevel
(SeverityLevel severityLevel) Methods inherited from class com.microsoft.applicationinsights.telemetry.BaseTelemetry
getContext, getProperties, getTimestamp, initialize, setTimestamp
-
Constructor Details
-
TraceTelemetry
public TraceTelemetry() -
TraceTelemetry
-
TraceTelemetry
Creates a new instance.- Parameters:
message
- The message. Max length 10000.severityLevel
- The severity level.
-
-
Method Details
-
getMessage
Gets the message text. For example, the text that would normally be written to a log file line. -
setMessage
Sets the message text. For example, the text that would normally be written to a log file line. -
setSeverityLevel
-
getSeverityLevel
-
getData
- Specified by:
getData
in classBaseTelemetry
-