change clear_log to send a series of newlines in a single command