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

LoggingConfiguration - Modify and clone LoggingRules under lock #2418

Merged
merged 1 commit into from
Nov 29, 2017

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Nov 23, 2017

Attempt to resolve #2393

An extended solution would be to implement a cache of the clone, and mark it dirty whenever LoggingRules are modified. But that is for another day.

The pretty solution would probably be to invent a special thread-safe IList-container, since LoggingRules is also a public property. But that is also for another day.

@codecov
Copy link

codecov bot commented Nov 23, 2017

Codecov Report

Merging #2418 into master will decrease coverage by <1%.
The diff coverage is 63%.

@@           Coverage Diff           @@
##           master   #2418    +/-   ##
=======================================
- Coverage      82%     82%   -<1%     
=======================================
  Files         322     322            
  Lines       23046   23055     +9     
  Branches     2852    2858     +6     
=======================================
  Hits        18817   18817            
- Misses       3494    3497     +3     
- Partials      735     741     +6

@snakefoot snakefoot force-pushed the LoggingConfigurationRulesSafe branch from edac293 to cac2366 Compare November 24, 2017 06:05
@304NotModified 304NotModified self-requested a review November 25, 2017 20:14
@304NotModified 304NotModified added this to the 4.5 rc2 milestone Nov 25, 2017
@304NotModified
Copy link
Member

will try to check this more in-depth this week

@snakefoot snakefoot force-pushed the LoggingConfigurationRulesSafe branch from cac2366 to e439536 Compare November 27, 2017 18:21
src/NLog/Config/LoggingConfiguration.cs Outdated Show resolved Hide resolved
src/NLog/Config/LoggingConfiguration.cs Outdated Show resolved Hide resolved
src/NLog/Config/LoggingConfiguration.cs Outdated Show resolved Hide resolved
src/NLog/Config/LoggingConfiguration.cs Show resolved Hide resolved
src/NLog/Config/XmlLoggingConfiguration.cs Show resolved Hide resolved
@304NotModified
Copy link
Member

I think this works, expect the ToList for the future. Added some small (rename) proposals

@304NotModified 304NotModified added the enhancement Improvement on existing feature label Nov 27, 2017
@snakefoot snakefoot force-pushed the LoggingConfigurationRulesSafe branch from e439536 to 6acf558 Compare November 27, 2017 22:28
@snakefoot snakefoot force-pushed the LoggingConfigurationRulesSafe branch from 6acf558 to 0d3a7ee Compare November 27, 2017 22:43
@snakefoot snakefoot force-pushed the LoggingConfigurationRulesSafe branch from 0d3a7ee to c90a6fd Compare November 27, 2017 22:47
@304NotModified
Copy link
Member

merged, thanks

@304NotModified 304NotModified merged commit 6f37b14 into NLog:master Nov 29, 2017
@snakefoot snakefoot deleted the LoggingConfigurationRulesSafe branch December 4, 2017 19:48
@snakefoot snakefoot mentioned this pull request Dec 4, 2017
@snakefoot snakefoot modified the milestones: 4.5 rc2, 4.5 Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement on existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants