Get text from Game log (text ui in bottom-right corner)

How can I get the text in game log (text ui in bottom-right corner, I don’t know what is the name of that box). I want to track who get the item that drop from mobs. If its not the best way to get that data how can I find that data?
i.e 1 hp potion distribute to party_member_1

You can get that info from game packets.

how does work get_log() ?

It returns all the text currently in the log

yes but it does not work or I dont know how to use:

def get_log(text):
log(text)

or how?

get_log()

It only returns the bot log text.