mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-02-08 23:39:32 +00:00
## About The Pull Request Converts all logging, excluding perf and investigate, to json. I focused on making the system as easy to use and as easy to add new categories as possible. Due to issues related to logging to world at global creation logger is now a byond real, which is created directly before Master Log categories support versioning, secret flagging, and sub-category filtering. Although all of this is entirely optional for coders. If you ever want to add a new category and use it, all you need to do is make the barebones category datum and the define. I've kept existing procs such as log_game, and simply turned them into a wrapper for Logger.Log(xxx, ...) ## Why It's Good For The Game Makes processing and filtering logs much easier in the future, while only minimally downgrading log crawling experience. I am also working on a log viewer frontend for admin usage however that will take a little bit longer to finish up. Also makes special logging and data tracking much easier thanks to a data list processing implementation and handling ## Changelog 🆑 server: All logs are now formatted in json, excluding perf and investigations /🆑 --------- Signed-off-by: GitHub <noreply@github.com> Co-authored-by: tattle <66640614+dragomagol@users.noreply.github.com> Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
33 lines
995 B
Plaintext
33 lines
995 B
Plaintext
/// Logging for generic/unsorted game messages
|
|
/proc/log_game(text, list/data)
|
|
logger.Log(LOG_CATEGORY_GAME, text, data)
|
|
|
|
/// Logging for emotes
|
|
/proc/log_emote(text, list/data)
|
|
logger.Log(LOG_CATEGORY_GAME_EMOTE, text, data)
|
|
|
|
/// Logging for emotes sent over the radio
|
|
/proc/log_radio_emote(text, list/data)
|
|
logger.Log(LOG_CATEGORY_GAME_RADIO_EMOTE, text, data)
|
|
|
|
/// Logging for messages sent in OOC
|
|
/proc/log_ooc(text, list/data)
|
|
logger.Log(LOG_CATEGORY_GAME_OOC, text, data)
|
|
|
|
/// Logging for prayed messages
|
|
/proc/log_prayer(text, list/data)
|
|
logger.Log(LOG_CATEGORY_GAME_PRAYER, text, data)
|
|
|
|
/// Logging for music requests
|
|
/proc/log_internet_request(text, list/data)
|
|
logger.Log(LOG_CATEGORY_GAME_INTERNET_REQUEST, text, data)
|
|
|
|
/// Logging for logging in & out of the game, with error messages.
|
|
/proc/log_access(text, list/data)
|
|
logger.Log(LOG_CATEGORY_GAME_ACCESS, text, data)
|
|
|
|
/// Logging for OOC votes
|
|
/proc/log_vote(text, list/data)
|
|
logger.Log(LOG_CATEGORY_GAME_VOTE, text, data)
|
|
|