Webiny\Component\Logger\Logger::__call PHP Method

__call() public method

Call a method on driver instance Since we are wrapping an actual driver instance with this Logger object, we need a way to implement this magic method to forward the call to driver instance
public __call ( $name, $arguments ) : mixed
$name
$arguments
return mixed
    public function __call($name, $arguments)
    {
        if (method_exists($this->driverInstance, $name)) {
            return call_user_func_array([$this->driverInstance, $name], $arguments);
        }
        throw new LoggerException('Call to undefined method "' . $name . '" on Logger object! Make sure your logger driver provides the required method!');
    }