Merge pull request #10213 from MrStonedOne/runtimelogs

Adds optional runtime logging
This commit is contained in:
Cheridan
2015-06-29 22:28:26 -05:00
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -337,6 +337,11 @@
config.irc_first_connection_alert = 1
if("aggressive_changelog")
config.aggressive_changelog = 1
if("log_runtimes")
var/newlog = file("data/logs/runtimes/runtime-[time2text(world.realtime, "YYYY-MM-DD")].log")
if (world.log != newlog)
world.log << "Now logging runtimes to data/logs/runtimes/runtime-[time2text(world.realtime, "YYYY-MM-DD")].log"
world.log = newlog
else
diary << "Unknown setting in configuration: '[name]'"
+4 -1
View File
@@ -190,4 +190,7 @@ NOTIFY_NEW_PLAYER_AGE 0
#PANIC_BUNKER
## Uncomment to have the changelog file automatically open when a user connects and hasn't seen the latest changelog
#AGGRESSIVE_CHANGELOG
#AGGRESSIVE_CHANGELOG
## Uncomment to have the game log runtimes to the log folder. (Note: this disables normal output in dd/ds, so it should be left off for testing.
#LOG_RUNTIMES