Skip to content

Added logging feature#3

Open
TheSCREWEDSoftware wants to merge 12 commits into
azerothcore:masterfrom
TheSCREWEDSoftware:master
Open

Added logging feature#3
TheSCREWEDSoftware wants to merge 12 commits into
azerothcore:masterfrom
TheSCREWEDSoftware:master

Conversation

@TheSCREWEDSoftware
Copy link
Copy Markdown

BACKUP Table: carboncopy before running migrate_single_table_to_innodb.sh

Just to be on the safe side, it worked locally migrating / changing the DB type from MyISAM to InnoDB

- 2 new tables were added for the logging purposes

In config file:

Config.playerLogsTableName = 'carboncopy_player_logs'
Config.adminLogsTableName = 'carboncopy_admin_logs'

and

Config.enablePlayerLogs = true
Config.enableAdminLogs = true

Only creates the respective table and only logs if they are set to true.

- Logging the actions:

Adminstrator / GM
image

Players:
image

Console

.carboncopy logs

Displays the last 20 recent logs

.carboncopy logs --source potato

Displays all the logs where the source character name was "potato"

  • --source name|guid - Filter by source character name or GUID.
  • --target name|guid - Filter by target character name or GUID.
  • --day YYYY-MM-DD - Show entries from this date only.
  • --code N - Filter by status code (0=free ticket, 1=success, 2=failed).
  • --limit N - Max rows returned (1-100, default 20).
  • --oldest - Sort oldest first (default is newest first).

image
image
image
image
image

Player

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant