Add logfile management