Added logging to file support