-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Max message length option for Eventlog target #1127
Max message length option for Eventlog target #1127
Conversation
Also unit tests refactored for option.
Current coverage is
|
@@ -131,8 +130,26 @@ public EventLogTarget(IAppDomain appDomain) | |||
[DefaultValue("Application")] | |||
public string Log { get; set; } | |||
|
|||
private int m_MaxMessageLength; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please no Hungarian names. It's considered bad style.
Thanks! Reviewed it, some small things. Recommended read: http://dontcodetired.com/blog/post/Creating-Inline-Data-Driven-Tests-in-xUnit.aspx Note: we are still on xunit 1 in this repos |
Thanks for review @304NotModified! I will be available to take a look them in detail this evening. |
👍 |
I am done! Thanks again. BTW, I made some comments, but they are not visible because of outdated diff. :) |
Thanks! But what about the argumentexpection? Is this consists with other targets? (I only see the removal of the unit test) |
Edit: see your comment now. Will read that first. |
I think you have a valid point. I will double check other targets for consistency, as I also don't know what is consistent now. :) (and I should have to know it) |
Oops, forgot to asign myself. Well I don't like the Great work! Thanks! |
…eventlog-target Max message length option for Eventlog target
@UgurAldanmaz Can you add the new option on the wiki? (please add "Introduced in NLog 4.3") |
I added wiki informations. Thanks a lot @304NotModified! |
For #1102