protected function getObjectParams($priority, array $params = [])
    {
        if (!empty($params)) {
            $object = array_get($params, 'object');
            $name   = array_get($params, 'name');
        } elseif (!is_null($this->owner)) {
            $object = $this->owner;
            $name   = $this->getName($owner);
        } else {
            $backtrace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 3)[2];
            $object    = array_get($backtrace, 'object');
            $name      = $this->getName(get_class($object), array_get($backtrace, 'function'));
        }
        if (!is_object($object) or is_null($name)) {
            throw new Exception('Unable to resolve logger object params');
        }

        return [
            'type_id'     => $this->logTypeId($object),
            'owner_type'  => get_class($object),
            'old_value'   => $this->old,
            'priority_id' => $this->logPrioriotyId($priority),
            'name'        => $name
        ];
    }