Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved logging to avoid write redundant and not useful text in the windows events #443

Merged
merged 1 commit into from
Dec 3, 2023

Conversation

RecoX
Copy link
Member

@RecoX RecoX commented Dec 2, 2023

Improved logging to avoid write redundant and not useful text in the windows events

Now we will log the records properly without the prefix of usefulness text:

The description for Event ID:12 in Source:'Argentum20' cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: 

Just this line was modified:
Call ReportEvent(hEvent, eventType, 0, 11, 0, 1, Len(sLogMsg), nErrNo & " - " & sLogMsg, 0)

More info in how was changed to avoid this problem

https://learn.microsoft.com/en-us/windows/win32/eventlog/event-identifiers

@RecoX RecoX merged commit 5eeaeea into master Dec 3, 2023
@RecoX RecoX deleted the logs-fix branch December 3, 2023 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant