This commit is contained in:
2023-04-19 15:38:08 +08:00
parent 97e1ab470a
commit 7ff9c2b78e
+2 -1
View File
@@ -85,7 +85,8 @@ class Logger implements LoggerInterface
public static function __callStatic(string $name, array $arguments) public static function __callStatic(string $name, array $arguments)
{ {
// TODO: Implement __callStatic() method. // TODO: Implement __callStatic() method.
Kiri::getLogger()->{'_' . $name}(...$arguments); $name = str_replace('_', '', $name);
Kiri::getLogger()->{$name}(...$arguments);
} }