VoteLogging is the unified logging system in VotingPlugin that records vote-related activity to storage (MySQL only).
It is intended for auditing, analytics, debugging, and tracking reward/vote activity across your network.
VoteLogging works by listening to internal vote/reward events and writing structured entries to a storage backend.
Common logging listeners include:
PlayerPostVoteLoggerListenerPlayerSpecialRewardLoggerListenerVoteMilestoneVoteLogListenerVoteShopPurchaseLoggerListenerWhen MySQL logging is enabled, entries are written through the MySQL table handler (for example: VoteLogMysqlTable).
VoteLogging currently logs the following (MySQL only):
VoteLogging can be configured on both backend servers and proxies.
###########################################
# Vote Logging
# Optional logging of votes and rewards (MySQL only)
###########################################
# Currently logs:
# - Votes
# - Vote shop purchases
# - Top voter rewards
# - VoteMilestones rewards
# - VoteStreaks (not the old version)
VoteLogging:
# If enabled, will log votes in MySQL
# Enable on backend servers to access commands
Enabled: false
# Purge votes older than X days
# Set to -1 to disable automatic purging
PurgeDays: 30
UseMainMySQL: true
# MySQL settings only used if above is false
-1 to disable automatic purging.true, VoteLogging uses the main plugin MySQL settings.
false, VoteLogging uses the MySQL settings defined under VoteLogging (if present).VoteLogging:
# If enabled, will log votes in mysql
# Enable on backend servers to access commands
Enabled: false
# Purge votes older than X days
# Set to -1 to disable automatic purging
PurgeDays: 30
UseMainMySQL: true
# Mysql settings only used if above is false
Tip: If you want logs available for commands that query VoteLogging, enable VoteLogging on the backend server(s) that run those commands.
If PurgeDays is enabled (not -1), the system will periodically remove older log entries from MySQL to keep the database size manageable.
UseMainMySQL: true unless you have a specific reason to isolate VoteLogging into a separate database.To disable completely:
VoteLogging:
Enabled: false
This stops VoteLogging from writing any new entries.