View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0004689 | Spring engine | General | public | 2015-02-28 19:51 | 2015-03-01 23:41 | ||||||||
Reporter | user744 | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||||||
Status | new | Resolution | open | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0004689: enable logfile rotation as default | ||||||||||||
Description | After a crash: Sometimes infologs.txt gets lost because the player is eager to get back to playing as quick as possible. So the infolog files get overwritten. One can make a copy of the log before restarting spring, but players might already have restarted spring before someone can tell them what to do. Or sometimes it is forgotten. Maybe if spring has crashed, the logfile could *somehow* be saved from being overwritten. For example by copying the file into a different folder, like spring\crashlogs\ | ||||||||||||
Tags | No tags attached. | ||||||||||||
Checked infolog.txt for Errors | |||||||||||||
Attached Files |
|
![]() |
|
Jools (reporter) 2015-02-28 20:51 |
That's a good idea. Although I think there is a way to set spring to append logfiles instead of overwriting them, at least I don't know how to do that. |
abma (administrator) 2015-03-01 23:35 |
this functionality partly already exists: just set RotateLogFiles = 1 to implement this, https://github.com/spring/spring/blob/develop/rts/System/LogOutput.cpp#L224 has to be changed: so old files are renamed to infolog.1.txt infolog.2.txt ... n and anything > n is overwritten / deleted. |