[event log] Expose message filename

This commit is contained in:
1orenz0
2019-10-06 13:25:37 +01:00
committed by hakril
parent 6374f91fef
commit df28515b97
+17 -5
View File
@@ -513,6 +513,14 @@ class PublisherMetadata(EvtHandle):
"""The :class:`PublisherMetadata` for the publisher ``name``"""
return cls(winproxy.EvtOpenPublisherMetadata(None, name, None, 0, 0), name)
@property
def guid(self):
"""The GUID associated with this provider
:type: [:class:`GUID`] -- the GUID in a XXXXXXXXXX-YYYY-ZZZZ-TTTT-VVVVVVVVVV form
"""
return publishinfo(self, gdef.EvtPublisherMetadataPublisherGuid).value
@property
def chanrefs(self):
"""Identifies the channels child element of the provider.
@@ -585,12 +593,16 @@ class PublisherMetadata(EvtHandle):
return sbuff.value
@property
def guid(self):
"""The GUID associated with this provider
:type: [:class:`GUID`] -- the GUID in a XXXXXXXXXX-YYYY-ZZZZ-TTTT-VVVVVVVVVV form
def message_name(self):
"""
return publishinfo(self, gdef.EvtPublisherMetadataPublisherGuid).value
"""
return self.message(publishinfo(self, gdef.EvtPublisherMetadataPublisherMessageID).value)
@property
def message_filepath(self):
"""
"""
return publishinfo(self, gdef.EvtPublisherMetadataMessageFilePath).value
def __repr__(self):