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

Option to strip newlines from layout-renderers #86

Closed
ghost opened this issue Oct 7, 2012 · 2 comments
Closed

Option to strip newlines from layout-renderers #86

ghost opened this issue Oct 7, 2012 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 7, 2012

I find it quite hard to read (as in, visually parse) log-files where the events span more than one line (because, for example, they include a stacktrace or a multi-line message).
It would be great if there were an option to strip newlines from layout-renderers and instead render them as either nothing or some other character.

Moved from http://nlog.codeplex.com/workitem/6531

Comments:
It is very simple to implement as a wrapper layout renderer, possibly decorated with AmbientPropertyAttribute. See https://github.com/jkowalski/NLog/blob/master/src/NLog/LayoutRenderers/Wrappers/TrimWhiteSpaceLayoutRendererWrapper.cs for an example.

@304NotModified
Copy link
Member

merged so closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant