 | IReportLoggerLogData Method |
Logs a data message.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxvoid LogData(
ReportLevel level,
string category,
string message,
Object data,
IDictionary<string, string> metaInfos
)
Sub LogData (
level As ReportLevel,
category As String,
message As String,
data As Object,
metaInfos As IDictionary(Of String, String)
)
Parameters
- level
- Type: RanorexReportLevel
The message level. - category
- Type: SystemString
The category name. - message
- Type: SystemString
An optional message string for the data. - data
- Type: SystemObject
The message data object (can also be a null reference). - metaInfos
- Type: System.Collections.GenericIDictionaryString, String
Advanced reference information for use in the report.
Remarks
The
Report class calls this method for each attached
IReportLogger
instance when the
LogData(ReportLevel, String, Object) method is called. The logger should
store the method
arguments in the data store.
You should handle all the data types you will pass to the
LogData(ReportLevel, String, Object) method
in that method. By default, Ranorex uses this method to store screenshot and snapshot data in a report, so make
sure that you handle data of type Bitmap and ElementSnapshot. Additionally,
the Report.Link method passes a Uri object to that method
that can be used to add a link to the report.
See Also