New proc to replace world.log <<, log_to_dd()

This commit changes every 'world.log <<' message with a loggable proc-
log_to_dd().

This is adjustable in the config; If LOG_WORLD_OUTPUT is present, all
things sent to world.log will show up in the standard /data/logs/ logs.

These logs will contain the following (in order):
 Timestamp
 "DD_OUTPUT:"
 The message.

The config option for this, by default, is turned off.
This commit is contained in:
Tigercat2000
2015-08-14 18:18:57 -07:00
parent 7059cacf58
commit ca921216fe
37 changed files with 107 additions and 96 deletions
@@ -360,9 +360,9 @@
if(istype(thrower, /atom))
var/atom/A = thrower
ptext += " ([A]) ([A.x],[A.y],[A.z])"
world.log << "\[[time_stamp()]\] Process [name] caught exception[ptext]: [etext]"
log_to_dd("\[[time_stamp()]\] Process [name] caught exception[ptext]: [etext]")
if(exceptions[eid] >= 10)
world.log << "This exception will now be ignored for ten minutes."
log_to_dd("This exception will now be ignored for ten minutes.")
spawn(6000)
exceptions[eid] = 0