This commit is contained in:
2023-04-17 10:19:00 +08:00
parent 00b6d28196
commit e3d990077d
5 changed files with 10 additions and 45 deletions
+1 -3
View File
@@ -5,9 +5,8 @@ declare(strict_types=1);
namespace Kiri\Error;
use Kiri\Abstracts\Logger;
use Kiri\Exception\ConfigException;
class StdoutLogger extends Logger implements StdoutLoggerInterface
class StdoutLogger extends Logger
{
@@ -21,7 +20,6 @@ class StdoutLogger extends Logger implements StdoutLoggerInterface
* @param $message
* @param string $model
* @return bool
* @throws ConfigException
*/
public function addError($message, string $model = 'app'): bool
{
@@ -1,26 +0,0 @@
<?php
namespace Kiri\Error;
use Psr\Log\LoggerInterface;
interface StdoutLoggerInterface extends LoggerInterface
{
/**
* @param $message
* @param string $model
* @return bool
*/
public function addError($message, string $model = 'app'): bool;
/**
* @param string $model
* @return mixed
*/
public function getLastError(string $model = 'app'): mixed;
}