Logging basics – logging to files, setting levels and formatting