TestRunLogger
Interface: TestRunLogger<T>
Defined in: src/lib/models/testRun.ts:35
Logger interface for capturing test run execution events and progress.
Provides methods for logging informational messages, errors, and processing events during test run execution. Users can implement custom loggers to integrate with their logging infrastructure or customize output formatting.
Examples
Type Parameters
T
T
extends DataStructure
| undefined
= undefined
The data structure type for the test run TestRunLogger
Properties
error()
error: (
message
) =>void
Defined in: src/lib/models/testRun.ts:58
Logs error messages when issues occur during test run execution.
Parameters
message
string
The error message to log
Returns
void
void
Example
info()
info: (
message
) =>void
Defined in: src/lib/models/testRun.ts:46
Logs informational messages during test run execution.
Parameters
message
string
The informational message to log
Returns
void
void
Example
processed()
processed: (
message
,data
) =>void
Defined in: src/lib/models/testRun.ts:83
Logs processing completion for individual test run entries.
Called after each dataset entry has been processed, including output generation and evaluation. Provides detailed information about the processing results for monitoring and debugging.
Parameters
message
string
The processing completion message
data
Detailed processing data
datasetEntry
Data
<T
>
The dataset entry that was processed
evaluationResults?
Evaluation results (if any)
output?
The generated output (if successful)
Returns
void
void