Replace all printing to the console with calls to the logging framework