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

Don't stop logging when there is an invalid layoutrenderer in the layout #1583

Merged
merged 2 commits into from
Nov 21, 2016

Conversation

304NotModified
Copy link
Member

@304NotModified 304NotModified commented Aug 5, 2016

If we made a typo or forget to include some NLog extensions, there is a change that logging won't work at all! e.g. setting the Message of a filetarget on {logger} {messagge} (notice the typo), than the filetarget won't log anything!

This is unneeded and now we are skipping the invalid parts. The invalid parts are replace with an empty string.

If throwExceptions or throwConfigExceptions is true, there will be still an error thrown


This change is Reviewable

@codecov-io
Copy link

codecov-io commented Aug 6, 2016

Current coverage is 76% (diff: 100%)

Merging #1583 into master will decrease coverage by <1%

@@             master      #1583   diff @@
==========================================
  Files           270        270          
  Lines         16413      16423    +10   
  Methods        2621       2621          
  Messages          0          0          
  Branches       1787       1788     +1   
==========================================
+ Hits          12522      12525     +3   
+ Misses         3488       3485     -3   
- Partials        403        413    +10   

Sunburst

Powered by Codecov. Last update 7d8305d...e78bc1c

@304NotModified
Copy link
Member Author

Maybe add in the future the option to to set the option for replacement: empty (current), space, error, exception (enable throwExceptions)

@304NotModified 304NotModified merged commit 00e58af into master Nov 21, 2016
@304NotModified 304NotModified deleted the better-invalid-xml-handling branch November 21, 2016 21:36
@304NotModified 304NotModified changed the title Invalid Layout Should parse partly Don't stop logging when there is an invalid layoutrenderer in the layout Nov 30, 2016
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

2 participants