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

ExceptionLayoutRenderer - Separator with basic Layout support #4583

Merged
merged 1 commit into from
Oct 2, 2021

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Sep 26, 2021

Resolves #2249, so it is possible for users to specify ${newline} in the NLog.config for the Separator-property.

Also changes property-parsing so it work for LayoutRenderer-string-options, so it is consistent with NLog-Target-options and NLog-Layout-options.

ExceptionLayoutRenderer is very special since it allows users to override the rendering-methods for the individual parts. So the backing-field remains a string to ensure predictable behavior for the users, that wants to override rendering-methods.

@snakefoot snakefoot added this to the 5.0 (new) milestone Sep 26, 2021
@snakefoot snakefoot changed the title ExceptionLayoutRenderer - Support layout for Separator ExceptionLayoutRenderer - Extend Separator-option with basic Layout Sep 26, 2021
@snakefoot snakefoot changed the title ExceptionLayoutRenderer - Extend Separator-option with basic Layout ExceptionLayoutRenderer - Extend Separator-option with basic Layout support Sep 26, 2021
@snakefoot snakefoot changed the title ExceptionLayoutRenderer - Extend Separator-option with basic Layout support ExceptionLayoutRenderer - Separator-option with basic Layout support Sep 26, 2021
@snakefoot snakefoot added enhancement Improvement on existing feature breaking behavior change Same API, different result labels Sep 26, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@snakefoot snakefoot changed the title ExceptionLayoutRenderer - Separator-option with basic Layout support ExceptionLayoutRenderer - Separator with basic Layout support Sep 27, 2021
@snakefoot
Copy link
Contributor Author

@304NotModified Unless you are completely against this, then I would like commit and proceed with adding basic layout support for the other seperators. So NLog 5.0-preview2 can get out.

@304NotModified
Copy link
Member

with adding basic layout support for the other seperators

For the exception layout renderer? That sounds fine to me.

Copy link
Member

@304NotModified 304NotModified left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is a bit hard too review (it's large), but I think its fine

@snakefoot
Copy link
Contributor Author

For the exception layout renderer? That sounds fine to me.

Was thinking to also fix:

  • StackTraceLayoutRenderer.Separator
  • ScopeContextNestedStatesLayoutRenderer.Separator

@304NotModified
Copy link
Member

Ah OK, good idea :)

@snakefoot snakefoot merged commit ec61f09 into NLog:dev Oct 2, 2021
@snakefoot snakefoot deleted the layout-separator2 branch July 30, 2022 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking behavior change Same API, different result enhancement Improvement on existing feature size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

${exception} - separator=${newline} won't work
2 participants