Better logging (#16164)

* 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
This commit is contained in:
Fluffy
2023-08-05 21:53:11 +00:00
committed by GitHub
parent 40faa01587
commit b183188689
194 changed files with 1637 additions and 877 deletions
+26
View File
@@ -12,8 +12,34 @@
message_admins("[key_name(src)] toggled debugging on.")
log_admin("[key_name(src)] toggled debugging on.",admin_key=key_name(usr))
switch(alert("Do you want to print all logs to world? This should ONLY EVER HAPPEN IN CRISIS OR DURING DEBUGGING / DEVELOPMENT.", "All logs to world?", "No", "Yes"))
if("Yes")
config.all_logs_to_chat = 1
else
config.all_logs_to_chat = 0
feedback_add_details("admin_verb","DG2") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/DebugToggle()
set category = "Debug"
set name = "Debugs Toggle"
if(!check_rights(R_DEBUG|R_DEV)) return
var/target = input(usr, "Select which log to toggle", "Debugs Toggle", null) in sortAssoc(config.logsettings)
if(target)
config.logsettings[target] = !config.logsettings[target]
to_chat(usr, "The log category [target] is now [config.logsettings[target]]")
/client/proc/DebugToggleAll()
set category = "Debug"
set name = "Debugs Toggle ALL"
if(!check_rights(R_DEBUG|R_DEV)) return
switch(alert("Do you want to turn on ALL LOGS?.", "All logs to ON?", "No", "Yes"))
if("Yes")
for(var/k in config.logsettings)
config.logsettings[k] = TRUE
// callproc moved to code/modules/admin/callproc