Added logging feature#3
Open
TheSCREWEDSoftware wants to merge 12 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BACKUP Table:
carboncopybefore runningmigrate_single_table_to_innodb.shJust to be on the safe side, it worked locally migrating / changing the DB type from
MyISAMtoInnoDB- 2 new tables were added for the logging purposes
In config file:
and
Only creates the respective table and only logs if they are set to true.
- Logging the actions:
Adminstrator / GM

Players:

Console
.carboncopy logsDisplays the last 20 recent logs
.carboncopy logs --source potatoDisplays 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, default20).--oldest- Sort oldest first (default is newest first).Player