变更
This commit is contained in:
@@ -14,7 +14,16 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @method static emergency(string $message, array $context = [])
|
||||||
|
* @method static alert(string $message, array $context = [])
|
||||||
|
* @method static critical(string $message, array $context = [])
|
||||||
|
* @method static error(string $message, array $context = [])
|
||||||
|
* @method static waring(string $message, array $context = [])
|
||||||
|
* @method static notice(string $message, array $context = [])
|
||||||
|
* @method static info(string $message, array $context = [])
|
||||||
|
* @method static debug(string $message, array $context = [])
|
||||||
|
* @method static log(mixed $level, string $message, array $context = [])
|
||||||
|
* @method static flush()
|
||||||
*/
|
*/
|
||||||
class Logger implements LoggerInterface
|
class Logger implements LoggerInterface
|
||||||
{
|
{
|
||||||
@@ -67,6 +76,19 @@ class Logger implements LoggerInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $name
|
||||||
|
* @param array $arguments
|
||||||
|
* @return void
|
||||||
|
* @throws ReflectionException
|
||||||
|
*/
|
||||||
|
public static function __callStatic(string $name, array $arguments)
|
||||||
|
{
|
||||||
|
// TODO: Implement __callStatic() method.
|
||||||
|
Kiri::getLogger()->{$name}(...$arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @param array $context
|
* @param array $context
|
||||||
|
|||||||
Reference in New Issue
Block a user