Try to write log file at setup