protected function handleEventsLogging($model)
    {
        if (config($this->package.'.log_events_to_file') === true) {
            $this->logEventsToFile($model);
        }

        if (config($this->package.'.log_events_to_db') === true) {
            $this->logEventsToDB($model);
        }
    }