mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Dedicated wire logging file (#11125)
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#define INVESTIGATE_DIR "data/investigate/"
|
||||
|
||||
// Just in case
|
||||
#define AVAILABLE_INVESTIGATIONS list(I_HREFS,I_NOTES,I_NTSL,I_SINGULO,I_ATMOS,I_CHEMS)
|
||||
#define AVAILABLE_INVESTIGATIONS list(I_HREFS,I_NOTES,I_NTSL,I_SINGULO,I_ATMOS,I_CHEMS,I_WIRES)
|
||||
|
||||
// Actual list of global controllers.
|
||||
var/global/list/investigations=list(
|
||||
@@ -21,7 +21,8 @@ var/global/list/investigations=list(
|
||||
I_NTSL = new /datum/log_controller(I_NTSL),
|
||||
I_SINGULO = new /datum/log_controller(I_SINGULO),
|
||||
I_ATMOS = null, //new /datum/log_controller("atmos",filename="data/logs/[date_string] atmos.htm", persist=TRUE),
|
||||
I_CHEMS = null // Set on world.New() with hrefs and atmos
|
||||
I_CHEMS = null, // Set on world.New()
|
||||
I_WIRES = null // Set on world.New()
|
||||
)
|
||||
|
||||
// Handles appending shit to log.
|
||||
@@ -67,7 +68,8 @@ var/global/list/investigations=list(
|
||||
|
||||
// Permits special snowflake formatting.
|
||||
/atom/proc/format_investigation_text(var/message)
|
||||
return "<small>[time2text(world.timeofday,"hh:mm:ss")] \ref[src] ([x],[y],[z])</small> || [src] [message]<br />"
|
||||
var/turf/T = get_turf(src)
|
||||
return "<small>[time2text(world.timeofday,"hh:mm:ss")] \ref[src] ([T.x],[T.y],[T.z])</small> || [src] [message]<br />"
|
||||
|
||||
// For non-atoms or very specific messages.
|
||||
/proc/minimal_investigation_log(var/subject, var/message, var/prefix)
|
||||
|
||||
Reference in New Issue
Block a user