Files
649c250702 [MIRROR] JSON Logging Take Two [MDB IGNORE] (#21329)
* JSON Logging Take Two

* Fixes the conflicts and makes our logs all comply with the new logging framework, hopefully.

---------

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
2023-05-28 18:10:07 -04:00

16 lines
413 B
Plaintext

GLOBAL_LIST_EMPTY(mentorlog)
GLOBAL_PROTECT(mentorlog)
/proc/log_mentor(text, list/data)
GLOB.mentorlog.Add(text)
logger.Log(LOG_CATEGORY_GAME_MENTOR, text, data)
/datum/admins/proc/MentorLogSecret()
var/dat = "<B>Mentor Log<HR></B>"
for(var/l in GLOB.mentorlog)
dat += "<li>[l]</li>"
if(!GLOB.mentorlog.len)
dat += "No mentors have done anything this round!"
usr << browse(dat, "window=mentor_log")