get('logger.enable', false)) { return; } $class = Pay::get(LoggerInterface::class); if ($class instanceof \Psr\Log\LoggerInterface || $class instanceof \Yansongda\Supports\Logger) { $class->{$method}(...$args); return; } throw new InvalidConfigException(Exception\Exception::LOGGER_CONFIG_ERROR); } }