How to get current or parent xaml file name in Studio and Runtime?

Hi everyone!
Could you please help me if there is a way to get the current xaml filename in Studio or Runtime? It’s a requierment regarding a customized log component we are developing for a client. So far, there is no way to recover data from the log message activities. So, we are trying to map them manually and then register them in the additional Database.
I have searched a lot about this but no luck :(
Thank you!