Added option to print when logging.