How to get the Log Details Event from a Publication GUID?

Hello,

We developed a reporting tool and I need to access to the log event details from the Publication Report output when the publication is in status failed. I found that there is a class named EventMonitor with a method GetEventDetail which requires the eventId as a parameter, my question is how do I get the eventId for a publication? Any other ideas on how to get the event details for publications?

emoji