ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
MockLogger.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\DAV
;
4
5
use
Psr\Log\AbstractLogger
;
6
15
class
MockLogger
extends
AbstractLogger
{
16
17
public
$logs
= [];
18
27
function
log
($level,
$message
, array
$context
= []) {
28
29
$this->logs[] = [
30
$level,
31
$message
,
32
$context
33
];
34
35
}
36
}
Sabre\DAV
$context
$context
Definition:
webdav.php:25
Psr\Log\AbstractLogger
This is a simple Logger implementation that other Loggers can inherit from.
Definition:
AbstractLogger.php:12
AbstractLogger
Sabre\DAV\MockLogger\$logs
$logs
Definition:
MockLogger.php:17
$message
catch(Exception $e) $message
Definition:
saml2-logout.php:34
Sabre\DAV\MockLogger\log
log($level, $message, array $context=[])
Logs with an arbitrary level.
Definition:
MockLogger.php:27
php
Sabre\DAV\MockLogger
The MockLogger is a simple PSR-3 implementation that we can use to test whether things get logged cor...
Definition:
MockLogger.php:15
libs
composer
vendor
sabre
dav
tests
Sabre
DAV
MockLogger.php
Generated on Thu Jan 16 2025 19:01:52 for ILIAS by
1.8.13 (using
Doxyfile
)