mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +01:00
31 lines
598 B
PHP
31 lines
598 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Xentral\Components\Logger\Handler;
|
|
|
|
use Xentral\Components\Logger\Context\ContextInterface;
|
|
|
|
interface LogHandlerInterface
|
|
{
|
|
/**
|
|
* @param string $level
|
|
* @param string $message
|
|
* @param ContextInterface $context
|
|
*
|
|
* @return void
|
|
*/
|
|
public function addLogEntry(
|
|
string $level,
|
|
string $message,
|
|
ContextInterface $context
|
|
): void;
|
|
|
|
/**
|
|
* @param string $level
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function canHandle(string $level): bool;
|
|
}
|