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

added switch to JsonLayout to suppress the extra spaces #797

Merged
merged 11 commits into from
Jul 23, 2015

Conversation

tmusico
Copy link
Contributor

@tmusico tmusico commented Jul 13, 2015

the extra spaces can now be suppressed for the JsonLayout. I found this modification to be useful when using a network target sending via UDP ... every little byte matters.

also added was a unit test and I tested the nlog file configuration (with the Nlog.test project) to ensure the configuration attribute was working correctly.

@304NotModified
Copy link
Member

Thanks

It would be nice if we create one (append) method which add the optional spacing. Do you agree?

@tmusico
Copy link
Contributor Author

tmusico commented Jul 13, 2015

That would work too. I was also thinking an extension method, that was the
way I first wrote it. But then when I looked through the rest of the nlog
source code I realized there wasn't any other extension methods that I
could see.

On Mon, Jul 13, 2015, 14:34 Julian Verdurmen notifications@github.com
wrote:

Thanks

It would be nice if we create one (append) method which add the optional
spacing. Do you agree?


Reply to this email directly or view it on GitHub
#797 (comment).

@304NotModified
Copy link
Member

I would like to merge this. But there is a conflict. Can you fix this?

@304NotModified
Copy link
Member

We need also docs on the wiki. Can you add them (with an 4.1 note)

@304NotModified 304NotModified self-assigned this Jul 20, 2015
extra spaces can now be omitted when using the JsonLayout.   useful when
every little byte matters.
Conflicts:
	src/NLog/Layouts/JsonLayout.cs
304NotModified added a commit that referenced this pull request Jul 23, 2015
added switch to JsonLayout to suppress the extra spaces
@304NotModified 304NotModified merged commit f18f851 into NLog:master Jul 23, 2015
@304NotModified
Copy link
Member

Thanks! It has been merged!

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

3 participants