[MIRROR] Asset log config (#8400)

* Asset log config (#61687)

Adds config to toggle on/off logging to asset.log

Special thanks to @ TiviPlus who stole it from @ TiviPlus at tgstation/TerraGov-Marine-Corps#8406

* Asset log config

Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-09-26 01:48:37 +01:00
committed by GitHub
co-authored by TiviPlus
parent 8609ecacce
commit 90ae165e50
3 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -105,7 +105,8 @@ GLOBAL_LIST_INIT(testing_global_profiler, list("_PROFILE_NAME" = "Global"))
WRITE_LOG(GLOB.world_paper_log, "PAPER: [text]")
/proc/log_asset(text)
WRITE_LOG(GLOB.world_asset_log, "ASSET: [text]")
if(CONFIG_GET(flag/log_asset))
WRITE_LOG(GLOB.world_asset_log, "ASSET: [text]")
/proc/log_access(text)
if (CONFIG_GET(flag/log_access))
@@ -72,6 +72,8 @@
/datum/config_entry/flag/log_cloning // log cloning actions.
/datum/config_entry/flag/log_asset //asset logging
/datum/config_entry/flag/log_vote // log voting
/datum/config_entry/flag/log_whisper // log client whisper
+3
View File
@@ -103,6 +103,9 @@ LOG_ADMIN
## log admin chat
LOG_ADMINCHAT
## log asset debug logs
#LOG_ASSET
## log client access (logon/logoff)
LOG_ACCESS