Add general event logging (#313)

* Update _file_loader.lua

* Create logging.lua

* Create logging.lua

* Update logging.lua

* Update logging.lua

* Update logging.lua

* Update logging.lua

* Update logging.lua
This commit is contained in:
2024-08-26 01:10:11 +09:00
committed by GitHub
parent f300140135
commit 6615450049
3 changed files with 115 additions and 0 deletions

43
config/logging.lua Normal file
View File

@@ -0,0 +1,43 @@
--- Settings for logging
-- @config logging
return {
file_name = 'log/logging.log',
rocket_launch_display = {
[1] = true,
[2] = true,
[5] = true,
[10] = true,
[20] = true,
[50] = true,
[100] = true,
[200] = true,
[500] = true,
[1000] = true,
[2000] = true,
[5000] = true,
[10000] = true,
[20000] = true,
[50000] = true,
[100000] = true,
[200000] = true,
[500000] = true,
[1000000] = true,
[2000000] = true,
[5000000] = true,
[10000000] = true
},
disconnect_reason = {
[defines.disconnect_reason.quit] = ' left the game',
[defines.disconnect_reason.dropped] = ' was dropped from the game',
[defines.disconnect_reason.reconnect] = ' is reconnecting',
[defines.disconnect_reason.wrong_input] = ' was having a wrong input',
[defines.disconnect_reason.desync_limit_reached] = ' had desync limit reached',
[defines.disconnect_reason.cannot_keep_up] = ' cannot keep up',
[defines.disconnect_reason.afk] = ' was afk',
[defines.disconnect_reason.kicked] = ' was kicked',
[defines.disconnect_reason.kicked_and_deleted] = ' was kicked and deleted',
[defines.disconnect_reason.banned] = ' was banned',
[defines.disconnect_reason.switching_servers] = ' is switching servers'
}
}