Protecting the log file from being overwritten.