Replace logging.