Add write to log file