mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 00:22:12 +00:00
* Initial * Cleared duplicates * More work, get rid of log_error * more * log_debug() to macro LOG_DEBUG * More work * More * Guh * Maybe better? * More work * gah * Dear lord * *inserts swears here* * gdi * More work * More * dear lord * fsdfsdafs * rsdaf * sadfasf * sdafsad * fgsd * small fuckup fix * jfsd * sdafasf * gdi * sdfa * sfdafgds * sdafasdvf * sdfasdfg * sdfsga * asdf * dsfasfsagf * ihibhbjh * fsadf * adfas * sdafsad * sdfasd * fsda * vhb * asf * for arrow * removed source file-line logging, added header for tgui
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
/proc/log_subsystem_mastercontroller(text)
|
|
if (config?.logsettings["log_subsystems"])
|
|
WRITE_LOG(config.logfiles["world_subsystems_log"], "SUBSYSTEM MASTERCONTROLLER: [text]")
|
|
|
|
send_gelf_log(text, "[time_stamp()]: [text]", SEVERITY_INFO, "MASTER")
|
|
|
|
/proc/log_subsystem(subsystem, text, log_world = TRUE, severity = SEVERITY_DEBUG)
|
|
if (!subsystem)
|
|
subsystem = "UNKNOWN"
|
|
var/msg = "[subsystem]: [text]"
|
|
|
|
if (config?.logsettings["log_subsystems"])
|
|
WRITE_LOG(config.logfiles["world_subsystems_log"], "SUBSYSTEM: [msg]")
|
|
|
|
send_gelf_log(msg, "[time_stamp()]: [msg]", severity, "SUBSYSTEM", additional_data = list("_subsystem" = subsystem))
|
|
// if (log_world)
|
|
// world.log << "SS[subsystem]: [text]"
|
|
|
|
/proc/log_subsystem_init(text)
|
|
#if defined(UNIT_TEST)
|
|
LOG_GITHUB_DEBUG("SUBSYSTEM INIT: [text]")
|
|
#else
|
|
if (config?.logsettings["log_subsystems"])
|
|
WRITE_LOG(config.logfiles["world_subsystems_log"], "SUBSYSTEM INIT: [text]")
|
|
|
|
send_gelf_log(text, "[time_stamp()]: [text]", SEVERITY_INFO, "SS Init")
|
|
#endif
|
|
|
|
// Generally only used when something has gone very wrong.
|
|
/proc/log_failsafe(text)
|
|
if (config?.logsettings["log_subsystems"])
|
|
WRITE_LOG(config.logfiles["world_subsystems_log"], "SUBSYSTEM FAILSAFE: [text]")
|
|
|
|
send_gelf_log(text, "[time_stamp()]: [text]", SEVERITY_ALERT, "FAILSAFE")
|