Logging for while and until.