Definition at line 10 of file Logger.php.
◆ __construct()
__construct |
( |
|
$name, |
|
|
array |
$handlers = [] , |
|
|
array |
$processors = [] |
|
) |
| |
- Parameters
-
string | $name | The logging channel |
| HandlerInterface[] | $handlers Optional stack of handlers, the first one in the array is called first, etc |
| callable[] | $processors Optional array of processors |
Definition at line 30 of file Logger.php.
32 $this->minimumErrorLevel = defined(
'TESTS_ERROR_LOG_LISTENER_LEVEL') ? TESTS_ERROR_LOG_LISTENER_LEVEL : -1;
33 parent::__construct(
$name, $handlers, $processors);
if(!isset($_GET['name'])) $name
◆ addRecord()
addRecord |
( |
|
$level, |
|
|
|
$message, |
|
|
array |
$context = [] |
|
) |
| |
inheritDoc}
- Parameters
-
integer | $level | The logging level |
string | $message | The log message |
array | $context | The log context |
- Returns
- Boolean Whether the record has been processed
Definition at line 60 of file Logger.php.
62 if ($level <= $this->minimumErrorLevel) {
64 'level' => $this->getLevelName($level),
68 return parent::addRecord($level,
$message, $context);
◆ clearMessages()
◆ getMessages()
◆ $messages
◆ $minimumErrorLevel
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/framework/Magento/TestFramework/ErrorLog/Logger.php