public function TestLogger::log in Lockr 7.3
@inheritdoc
Overrides LoggerInterface::log
File
- vendor/
psr/ log/ Psr/ Log/ Test/ TestLogger.php, line 69
Class
- TestLogger
- Used for testing purposes.
Namespace
Psr\Log\TestCode
public function log($level, $message, array $context = []) {
$record = [
'level' => $level,
'message' => $message,
'context' => $context,
];
$this->recordsByLevel[$record['level']][] = $record;
$this->records[] = $record;
}