We should move the logging setup into the main() function.