Add logfile support