update log file management to keep all the log for an instance