-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend db_log event logging #181
Comments
@milutinke that looks really awesome and is exactly what I am looking for. |
Well, Thomas seems to be busy, so you might wait a little longer. |
What is the issue, e.g. map voting, you would like to solve?
The db_log plugin is currently not logging every available events from log-parser. When I create database request for player statistics, I often miss data to order players based on playtime or selected role. It would be great, if the db-log plugin would also log player-connected, player-disconnected, player-possess and player-un-possess events. Some server owners might not want to spam their databases with this data, so it should be configurable within the setting.
How would you like us to solve this issue?
As a quick fix, these events could be logged as raw data in a separate table for each event. My preferred solution would be combining player-connected and player-disconnected in a "session" table like:
|| sessionID || steamID || connected || disconnected || playtime ||
The "playtime" value would be calculated time between the connect and the disconnect. This would allow dscord bots like SquadStats to also display the time a player played on the server.
For player-possess and player-un-possess it would be already great to just log all the data somewhere to check for which use-cases this values could be useful.
Additional Info
It would be awesome, if the existing tables DBLog_deaths, DBLog_Wounds, DBLog_Revives could include the MatchID. This makes it easier to identify when a specific event happened.
The text was updated successfully, but these errors were encountered: