Referring to nlog, when generating logs, they can be dynamically written to different files based on time.
First, when writing to the log, determine the current date and update the date to form a name name in log.FileName. After writing the date, determine whether the current open file is consistent with FileName. If not, open a file with a new name and write it to the log
Referring to nlog, when generating logs, they can be dynamically written to different files based on time.
First, when writing to the log, determine the current date and update the date to form a name name in log.FileName. After writing the date, determine whether the current open file is consistent with FileName. If not, open a file with a new name and write it to the log