mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-20 15:12:19 +00:00
* 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
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
/* Items with ADMINPRIVATE prefixed are stripped from public logs. */
|
|
|
|
/// General logging for admin actions
|
|
/proc/_log_admin(text)
|
|
admin_log.Add(text)
|
|
if (config.logsettings["log_admin"])
|
|
WRITE_LOG(config.logfiles["world_game_log"], "ADMIN: [text]")
|
|
|
|
/// Logging for admin actions on or with circuits
|
|
/proc/log_admin_circuit(text)
|
|
admin_log.Add(text)
|
|
if(config.logsettings["log_admin"])
|
|
WRITE_LOG(config.logfiles["world_game_log"], "ADMIN: CIRCUIT: [text]")
|
|
|
|
/// General logging for admin actions
|
|
/proc/log_admin_private(text)
|
|
admin_log.Add(text)
|
|
if (config.logsettings["log_admin"])
|
|
WRITE_LOG(config.logfiles["world_game_log"], "ADMINPRIVATE: [text]")
|
|
|
|
/// Logging for AdminSay (ASAY) messages
|
|
/proc/_log_adminsay(text)
|
|
admin_log.Add(text)
|
|
if (config.logsettings["log_adminchat"])
|
|
WRITE_LOG(config.logfiles["world_game_log"], "ADMINPRIVATE: ASAY: [text]")
|
|
|
|
/// Logging for DeachatSay (DSAY) messages
|
|
/proc/log_dsay(text)
|
|
if (config.logsettings["log_adminchat"])
|
|
WRITE_LOG(config.logfiles["world_game_log"], "ADMIN: DSAY: [text]")
|
|
|
|
/**
|
|
* Writes to a special log file if the log_suspicious_login config flag is set,
|
|
* which is intended to contain all logins that failed under suspicious circumstances.
|
|
*
|
|
* Mirrors this log entry to log_access when access_log_mirror is TRUE, so this proc
|
|
* doesn't need to be used alongside log_access and can replace it where appropriate.
|
|
*/
|
|
/proc/log_suspicious_login(text, access_log_mirror = TRUE)
|
|
if (config.logsettings["log_suspicious_login"])
|
|
WRITE_LOG(config.logfiles["world_suspicious_login_log"], "SUSPICIOUS_ACCESS: [text]")
|
|
if(access_log_mirror)
|
|
log_access(text)
|