Add purge configuration options & enable log purge