public function open(): bool
    {
        $path = $this->getOptionOrDefault('path');
        if (is_resource($path)) {
            $this->resource = $path;
            return true;
        }

        $context = $this->getOptionOrDefault('context');
        if (is_resource($context)) {
            $this->resource = @fopen($path, 'ab', false, $context);
        } else {
            $this->resource = @fopen($path, 'ab');
        }

        return is_resource($this->resource);
    }