Add basic logging.