modify the log buffer