Add a logger to the application. Logger should only print if user enters the debug flag when running the program.