Adds persistent logging