get(LoggerFactory::class)->get($name); } public static function __callStatic($method, $args) { $name = 'app'; if (isset($args[2])) { $name = $args[2]; unset($args[2]); } return call_user_func_array([self::get($name), $method], $args); } }