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

Optional ConditionMethod arguments, ignoreCase argument for standard condition methods, EventLogTarget enhancements #216

Merged
5 commits merged into from
May 16, 2013

Conversation

tg73
Copy link
Contributor

@tg73 tg73 commented May 14, 2013

/* These changes were posted as part of a pull request against jkowalski/NLog a long time ago (Oct 2011) , but there seems to be a graveyard of pull requests there and NLog/NLog is active. There have been no subsequent changes to the files I touched back then. Below is part of my original pull request message (there were some EventLogTarget changes too, which I've left out as we now put them in our own custom extension assembly). */

Hi,

I noted that the ability to specify case sensitivity was present in the deprecated "whenEquals" (etc) conditions, but not in the newer "when" condition. So I've added support for optional (defaulted) arguments for ConditionMethod methods, and given the standard string-related ones an optional ignoreCase argument.

As a general note, I couldn't find any "how to contribute" documentation, so I'm not sure how you handle contributions, notably regarding copyright. For now, I've added copyright entries in the files I've touched/created with my employer's details, but I'm open to discussion on this.

I've built the code via build.cmd for netfx40, netfx35, netfx20 and sl3 (that's all the SDKs I've got installed) and addressed any code analysis issues. I've tested under netfx40 (including my silverlight-only code).

Regards,

Tom

tg73 added 4 commits May 14, 2013 16:43
…rameters can be omitted from the end of the parameter list (only).
…, retaining original behaviour as the default. Added new strequals function for string comparison with optional ignoreCase argument.
@ghost
Copy link

ghost commented May 14, 2013

The current unit tests will fail if the copyright isn't the same as in all the other files. Also this would ensure we don't need permission from you to redistribute the changes. If it is possible please change to copyright to match the current files.

@tg73
Copy link
Contributor Author

tg73 commented May 16, 2013

Done as per your request.

ghost pushed a commit that referenced this pull request May 16, 2013
Optional ConditionMethod arguments, ignoreCase argument for standard condition methods, EventLogTarget enhancements
@ghost ghost merged commit 615f2d7 into NLog:master May 16, 2013
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant