Add cache and log abstract factories to configuration