|
| __construct (private readonly TestLoggingSettings $logging_settings, private readonly TestLoggingRepository $logging_repository, private readonly Factory $interaction_factory, private readonly AdditionalInformationGenerator $additional_information, private readonly \ilComponentLogger $component_logger,) |
|
| isLoggingEnabled () |
|
| isIPLoggingEnabled () |
|
| testHasParticipantInteractions (int $ref_id) |
|
| deleteParticipantInteractionsForTest (int $ref_id) |
|
| logTestAdministrationInteraction (TestAdministrationInteraction $interaction) |
|
| logQuestionAdministrationInteraction (TestQuestionAdministrationInteraction $interaction) |
|
| logParticipantInteraction (TestParticipantInteraction $interaction) |
|
| logScoringInteraction (TestScoringInteraction $interaction) |
|
| emergency (string|\Stringable $message, array $context=[]) |
|
| alert (string|\Stringable $message, array $context=[]) |
|
| critical (string|\Stringable $message, array $context=[]) |
|
| error (string|\Stringable $message, array $context=[]) |
|
| warning (string|\Stringable $message, array $context=[]) |
|
| notice (string|\Stringable $message, array $context=[]) |
|
| info (string|\Stringable $message, array $context=[]) |
|
| debug (string|\Stringable $message, array $context=[]) |
|
| log ($level, string|\Stringable $message, mixed $context=[]) |
|
| getComponentLogger () |
|
| getInteractionFactory () |
|
| getAdditionalInformationGenerator () |
|
| getLogEntryTypes () |
|
| getInteractionTypes () |
|
Definition at line 27 of file TestLogger.php.
◆ __construct()
◆ alert()
ILIAS\Test\Logging\TestLogger::alert |
( |
string|\Stringable |
$message, |
|
|
array |
$context = [] |
|
) |
| |
◆ createTestErrorFromContext()
ILIAS\Test\Logging\TestLogger::createTestErrorFromContext |
( |
array |
$context, |
|
|
string |
$message |
|
) |
| |
|
private |
◆ critical()
ILIAS\Test\Logging\TestLogger::critical |
( |
string|\Stringable |
$message, |
|
|
array |
$context = [] |
|
) |
| |
◆ debug()
ILIAS\Test\Logging\TestLogger::debug |
( |
string|\Stringable |
$message, |
|
|
array |
$context = [] |
|
) |
| |
◆ deleteParticipantInteractionsForTest()
ILIAS\Test\Logging\TestLogger::deleteParticipantInteractionsForTest |
( |
int |
$ref_id | ) |
|
Definition at line 60 of file TestLogger.php.
62 $this->logging_repository->deleteParticipantInteractionsForTest(
$ref_id);
◆ emergency()
ILIAS\Test\Logging\TestLogger::emergency |
( |
string|\Stringable |
$message, |
|
|
array |
$context = [] |
|
) |
| |
◆ error()
ILIAS\Test\Logging\TestLogger::error |
( |
string|\Stringable |
$message, |
|
|
array |
$context = [] |
|
) |
| |
◆ getAdditionalInformationGenerator()
ILIAS\Test\Logging\TestLogger::getAdditionalInformationGenerator |
( |
| ) |
|
Definition at line 184 of file TestLogger.php.
184 : AdditionalInformationGenerator
186 return $this->additional_information;
◆ getComponentLogger()
ILIAS\Test\Logging\TestLogger::getComponentLogger |
( |
| ) |
|
Definition at line 174 of file TestLogger.php.
176 return $this->component_logger;
Component logger with individual log levels by component id.
◆ getInteractionFactory()
ILIAS\Test\Logging\TestLogger::getInteractionFactory |
( |
| ) |
|
Definition at line 179 of file TestLogger.php.
181 return $this->interaction_factory;
◆ getInteractionTypes()
ILIAS\Test\Logging\TestLogger::getInteractionTypes |
( |
| ) |
|
Definition at line 197 of file TestLogger.php.
199 $interaction_types = [];
200 foreach (self::LOG_ENTRY_TYPES as $type => $enum_class) {
201 $interaction_types[$type] = array_column($enum_class::cases(),
'value');
203 return $interaction_types;
◆ getLogEntryTypes()
ILIAS\Test\Logging\TestLogger::getLogEntryTypes |
( |
| ) |
|
- Returns
- array<string>
Definition at line 192 of file TestLogger.php.
194 return array_keys(self::LOG_ENTRY_TYPES);
◆ info()
ILIAS\Test\Logging\TestLogger::info |
( |
string|\Stringable |
$message, |
|
|
array |
$context = [] |
|
) |
| |
◆ isIPLoggingEnabled()
ILIAS\Test\Logging\TestLogger::isIPLoggingEnabled |
( |
| ) |
|
Definition at line 50 of file TestLogger.php.
52 return $this->logging_settings->isIPLoggingEnabled();
◆ isLoggingEnabled()
ILIAS\Test\Logging\TestLogger::isLoggingEnabled |
( |
| ) |
|
Definition at line 45 of file TestLogger.php.
47 return $this->logging_settings->isLoggingEnabled();
◆ log()
ILIAS\Test\Logging\TestLogger::log |
( |
|
$level, |
|
|
string|\Stringable |
$message, |
|
|
mixed |
$context = [] |
|
) |
| |
◆ logParticipantInteraction()
Definition at line 75 of file TestLogger.php.
77 $this->logging_repository->storeParticipantInteraction($interaction);
◆ logQuestionAdministrationInteraction()
Definition at line 70 of file TestLogger.php.
72 $this->logging_repository->storeQuestionAdministrationInteraction($interaction);
◆ logScoringInteraction()
Definition at line 80 of file TestLogger.php.
82 $this->logging_repository->storeScoringInteraction($interaction);
◆ logTestAdministrationInteraction()
Definition at line 65 of file TestLogger.php.
67 $this->logging_repository->storeTestAdministrationInteraction($interaction);
◆ notice()
ILIAS\Test\Logging\TestLogger::notice |
( |
string|\Stringable |
$message, |
|
|
array |
$context = [] |
|
) |
| |
◆ testHasParticipantInteractions()
ILIAS\Test\Logging\TestLogger::testHasParticipantInteractions |
( |
int |
$ref_id | ) |
|
Definition at line 55 of file TestLogger.php.
57 return $this->logging_repository->testHasParticipantInteractions(
$ref_id);
◆ warning()
ILIAS\Test\Logging\TestLogger::warning |
( |
string|\Stringable |
$message, |
|
|
array |
$context = [] |
|
) |
| |
◆ LOG_ENTRY_TYPES
const ILIAS\Test\Logging\TestLogger::LOG_ENTRY_TYPES |
|
private |
The documentation for this class was generated from the following file: