Help logging economy statistics

So right now, I'm using SellGUI (https://www.spigotmc.org/resources/sellgui.55201/) for the nice GUI and EssentialsX as my economy plugin. I want to be able to log when a player sells an item, check what items they have sold and how much each item sold for, and place them into a text file formatted like a leaderboard, showing the total amount of money made from players selling that specific item. My problem is that I have no clue how I can get the logs of the players selling an item, check for the item, how many were sold, how much each sold for, etc. I have my own plugin I'm working on, so any assistance on how I can check for that would be very appreciated.
Was this page helpful?