Add configurable retention for logs