MarsConfig
Properties
File writing modes are divided into asynchronous and synchronous. The Release version must use MarsWriteMode.Async. The Debug version can be both, but there may be lags when using MarsWriteMode.Sync.
File name prefix. For example, if the value is log, the generated file name is: log_20170102.xlog.
The number of days to cache. Under normal circumstances, just fill in 0. Non-0 means that the log file will be stored in the logCache directory first, and the log will be moved from logCache to logDir after singleLogFileCacheDays days.
Whether to save log in one file every day.
The maximum size of a single log file. By default, the current day's logs are written to a file. By changing singleLogFileMaxSize you can Split the day's log into multiple files, each file size is singleLogFileMaxSize, singleLogFileMaxSize defaults to 1MB , means not to split the log into multiple files. It is recommended that each file should not exceed 10M.
The maximum storage time of a single log file. Minimum 1 day, default time 10 days.