If save the log as a file, a disk failure will cause the node to crash. It is recommended that add an exception capture when write to log file.