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

Introduce FileAppenderCache class #994

Merged
merged 7 commits into from
Nov 5, 2015
Merged

Introduce FileAppenderCache class #994

merged 7 commits into from
Nov 5, 2015

Conversation

ie-zero
Copy link
Contributor

@ie-zero ie-zero commented Oct 24, 2015

Extract the functionality related to file appenders (BaseFileAppenders) used within the FileTarget class into a new class named FileAppenderCache.

This change should improve the code readability and encourage further refactorings. It also re-enforces the Single Responsibility Principle.

The "new" code does not change the implementation of the functionality related to file appenders. It simply separates it out of the FileTarget class.

There are no breaking changes in my knowledge.

Iraklis E added 2 commits October 24, 2015 11:20
Extract the functionality related to file appenders (BaseFileAppenders)
used within the FileTarget class into a new class named
FileAppenderCache.

This change should improve the code readability and encourage further
refactorings. It also re-enforces the Single Responsibility Principle.
Merge 'NLog/master' into FileTarget-FileAppenderCache and resolve
merging conflicts between the two branches.
@codecov-io
Copy link

Current coverage is 71.94%

Merging #994 into master will increase coverage by +0.34% as of 6a0b9e7

@@            master    #994   diff @@
======================================
  Files          262     263     +1
  Stmts        14793   14829    +36
  Branches      1611    1611       
  Methods          0       0       
======================================
+ Hit          10592   10669    +77
- Partial        415     421     +6
+ Missed        3786    3739    -47

Review entire Coverage Diff as of 6a0b9e7


Uncovered Suggestions

  1. +0.09% via ...argets/FileTarget.cs#1559...1571
  2. +0.08% via ...c/NLog/LogFactory.cs#180...191
  3. +0.08% via ...anceCounterTarget.cs#308...318
  4. See 7 more...

Powered by Codecov. Updated on successful CI builds.

@304NotModified 304NotModified added this to the 4.3 milestone Nov 5, 2015
@304NotModified 304NotModified added enhancement Improvement on existing feature has unittests labels Nov 5, 2015
304NotModified added a commit that referenced this pull request Nov 5, 2015
@304NotModified 304NotModified merged commit 7f820d5 into NLog:master Nov 5, 2015
@304NotModified
Copy link
Member

Thanks again! also for the unit tests 👍 👍

@ie-zero ie-zero deleted the FileTarget-FileAppenderCache branch November 5, 2015 17:32
@304NotModified 304NotModified modified the milestones: 4.3, 4.2.1 Nov 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement on existing feature file-target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants