Adds basic logging.