Saving and printing output—log files