Add bug logging like the feature logging.