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

MicrosoftConsoleLayoutRenderer - Fixed IndexOutOfRangeException when large EventID #570

Merged
merged 1 commit into from Feb 5, 2022
Merged

MicrosoftConsoleLayoutRenderer - Fixed IndexOutOfRangeException when large EventID #570

merged 1 commit into from Feb 5, 2022

Conversation

mickelsonmichael
Copy link
Contributor

When an EventID comes in to the MicrosoftConsoleLayout formatter, if the ID is not within the range of pre-mapped event IDs (currently 0 to 50), then it should be simply converted to a string.

See #569 for details on original issue

When an EventID comes in to the MicrosoftConsoleLayout formatter, if the ID is not within the range of pre-mapped event IDs (currently 0 to 50), then it should be simply converted to a string.
@snakefoot
Copy link
Contributor

Closing and reopening to trigger rebuild.

@snakefoot snakefoot closed this Feb 5, 2022
@snakefoot snakefoot reopened this Feb 5, 2022
@snakefoot snakefoot added the bug label Feb 5, 2022
@snakefoot snakefoot added this to the 5.0 milestone Feb 5, 2022
@snakefoot snakefoot merged commit cfb772e into NLog:master Feb 5, 2022
@snakefoot
Copy link
Contributor

Thank you for spotting this, and fixing this with a nice unit-test. Much appreciated!

@snakefoot snakefoot changed the title Ensure event ID out of mapper range is parsed MicrosoftConsoleLayoutRenderer - Fixed IndexOutOfRangeException when large EventID Feb 5, 2022
@snakefoot
Copy link
Contributor

NLog 5.0 RTM is finally here: https://www.nuget.org/packages/NLog

@mickelsonmichael mickelsonmichael deleted the fix-ms-formatter-event-id-mapper branch May 18, 2022 14:21
snakefoot pushed a commit that referenced this pull request Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants