Skip to content

MicrosoftConsoleLayoutRenderer - Fixed IndexOutOfRangeException when large EventID#570

Merged
snakefoot merged 1 commit intoNLog:masterfrom
mickelsonmichael:fix-ms-formatter-event-id-mapper
Feb 5, 2022
Merged

MicrosoftConsoleLayoutRenderer - Fixed IndexOutOfRangeException when large EventID#570
snakefoot merged 1 commit intoNLog:masterfrom
mickelsonmichael:fix-ms-formatter-event-id-mapper

Conversation

@mickelsonmichael
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants