store event ID val as hex now as well
This commit is contained in:
parent
5c8895b631
commit
52f291692c
@ -266,11 +266,14 @@ class EventParser(FileParser):
|
||||
def export_to_file(filename: str, event_list: list, file_separator: str):
|
||||
file = open(filename, "w")
|
||||
for entry in event_list:
|
||||
event_id = entry[0]
|
||||
event_id = int(entry[0])
|
||||
event_value = entry[1]
|
||||
event_id_as_hex = f"{event_id:#06x}"
|
||||
file.write(
|
||||
str(event_id)
|
||||
+ file_separator
|
||||
+ event_id_as_hex
|
||||
+ file_separator
|
||||
+ event_value[EVENT_ENTRY_NAME_IDX]
|
||||
+ file_separator
|
||||
+ event_value[EVENT_ENTRY_SEVERITY_IDX]
|
||||
|
Loading…
Reference in New Issue
Block a user