Files
Fluffy 78348238a3 Removed the GELF logging infrastructure (#19577)
Removed the gelf logging infrastructure.
Refactored the various logging procs to be a direct call in light of the
above.
Removed ancilliary UDP related things.
2024-07-08 12:48:16 +00:00

23 lines
813 B
Plaintext

/proc/log_subsystem(subsystem, text, log_world = TRUE, severity = SEVERITY_DEBUG)
if (!subsystem)
subsystem = "UNKNOWN"
var/msg = "[subsystem]: [text]"
if (GLOB.config?.logsettings["log_subsystems"])
WRITE_LOG(GLOB.config.logfiles["world_subsystems_log"], "SUBSYSTEM: [msg]")
// 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 (GLOB.config?.logsettings["log_subsystems"])
WRITE_LOG(GLOB.config.logfiles["world_subsystems_log"], "SUBSYSTEM INIT: [text]")
#endif
// Generally only used when something has gone very wrong.
/proc/log_failsafe(text)
if (GLOB.config?.logsettings["log_subsystems"])
WRITE_LOG(GLOB.config.logfiles["world_subsystems_log"], "SUBSYSTEM FAILSAFE: [text]")