Skip to content

${whenEmpty} implemented IRawValue and IStringValueRenderer#3398

Merged
304NotModified merged 3 commits intoNLog:release/4.6.4from
snakefoot:WhenEmptyTryGetRaw
May 14, 2019
Merged

${whenEmpty} implemented IRawValue and IStringValueRenderer#3398
304NotModified merged 3 commits intoNLog:release/4.6.4from
snakefoot:WhenEmptyTryGetRaw

Conversation

@snakefoot
Copy link
Copy Markdown
Contributor

Alternative implementation of #3395

@snakefoot snakefoot changed the base branch from dev to master May 13, 2019 18:15
@codecov-io
Copy link
Copy Markdown

codecov-io commented May 13, 2019

Codecov Report

Merging #3398 into release/4.6.4 will increase coverage by <1%.
The diff coverage is 73%.

@@              Coverage Diff               @@
##           release/4.6.4   #3398    +/-   ##
==============================================
+ Coverage             80%     80%   +<1%     
==============================================
  Files                357     357            
  Lines              28262   28302    +40     
  Branches            3760    3767     +7     
==============================================
+ Hits               22636   22671    +35     
- Misses              4531    4537     +6     
+ Partials            1095    1094     -1

@304NotModified 304NotModified changed the base branch from master to release/4.6.4 May 13, 2019 22:07
@304NotModified 304NotModified added this to the 4.6.4 milestone May 13, 2019
@304NotModified 304NotModified self-assigned this May 13, 2019
{
base.InitializeLayoutRenderer();
WhenEmpty?.Initialize(LoggingConfiguration);
_skipStringValueRenderer = !TryGetStringValue(out var _, out var _);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you don't want var here ;) (the _ is also a keyword)

I have updated it

@304NotModified
Copy link
Copy Markdown
Member

Thanks! Refactored some duplicate lines and added some tests. Now good to go :)

@304NotModified 304NotModified changed the title WhenEmptyLayoutRendererWrapper with IRawValue and IStringValueRenderer Implement IRawValue and IStringValueRenderer May 14, 2019
@304NotModified 304NotModified changed the title Implement IRawValue and IStringValueRenderer ${whenEmpty} implement IRawValue and IStringValueRenderer May 14, 2019
@304NotModified 304NotModified changed the title ${whenEmpty} implement IRawValue and IStringValueRenderer ${whenEmpty} implemented IRawValue and IStringValueRenderer May 14, 2019
@304NotModified 304NotModified merged commit 3309247 into NLog:release/4.6.4 May 14, 2019
304NotModified pushed a commit that referenced this pull request May 20, 2019
* WhenEmptyLayoutRendererWrapper with IRawValue and IStringValueRenderer

* refactor

* added test
304NotModified pushed a commit that referenced this pull request May 28, 2019
* WhenEmptyLayoutRendererWrapper with IRawValue and IStringValueRenderer

* refactor

* added test
@snakefoot snakefoot deleted the WhenEmptyTryGetRaw branch April 4, 2020 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants