if the log window is visible,update it when the log file change