Add engine version to timestamped log directory
At present Terasology stores activity logs in timestamped directories, one per game execution. If the same directory is used for multiple instances of the game, it can be hard to tell which logs belong to which version. Your task is to add the engine version (and a build number from Jenkins if present) to the timestamped directory - for example, a log file called 2016-11-05_12-04-00
should be changed to 2016-11-05_12-04-00_v1.2.3-SNAPSHOT
.
Definition of 'Done'
- A pull request is submitted to Terasology's engine repository changing log directory naming to incorporate versions and build numbers as described above.
Where to start?
TerasologyVersion
contains available version metadata, andLoggingContext
configures the game's log files. Your code should interact with these two classes.When testing the pull request, double-check that the Crash Reporter can still find and show log files in the new format directories. To intentionally crash the game, launch the Sample module and type
giveBlock ReallyCrashGameBlock
in the console, then place the given block and pressE
to provoke a crash.