Added Logfile class to make code Qt4 compatible