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 - FindTargetByName should also find target + fix for logging on a target even after removed #2549

Merged

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Jan 27, 2018

When configured directly with AddRule (Without using AddTarget first)

Also changed RemoveTarget so it can safely remove an active target. Resolves #2227 (And replaces #2259)

Discovered some tricky business with AddTarget(string name, Target target), that allows one to register a target with a different alias (instead of the actual target-name). Trying to support removing target by alias, and still removing correctly from active LoggingRules (ReferenceEquals)

@snakefoot snakefoot force-pushed the LoggingConfigurationFindTarget branch from 2c68a9e to bd32eff Compare January 27, 2018 12:09
@codecov
Copy link

codecov bot commented Jan 27, 2018

Codecov Report

Merging #2549 into master will increase coverage by <1%.
The diff coverage is 92%.

@@           Coverage Diff           @@
##           master   #2549    +/-   ##
=======================================
+ Coverage      82%     82%   +<1%     
=======================================
  Files         323     323            
  Lines       23430   23501    +71     
  Branches     2936    2945     +9     
=======================================
+ Hits        19097   19165    +68     
- Misses       3554    3556     +2     
- Partials      779     780     +1

@snakefoot snakefoot force-pushed the LoggingConfigurationFindTarget branch 9 times, most recently from 40d2cf0 to 99ac80e Compare January 30, 2018 23:29
@snakefoot snakefoot force-pushed the LoggingConfigurationFindTarget branch from 99ac80e to cbe06ed Compare January 31, 2018 16:11
@304NotModified 304NotModified added the bug Bug report / Bug fix label Feb 5, 2018
@304NotModified 304NotModified changed the title LoggingConfiguration - FindTargetByName should also find target LoggingConfiguration - FindTargetByName should also find target + fix for logging on a target even after removed Feb 5, 2018
@304NotModified 304NotModified merged commit e8c98ec into NLog:master Feb 5, 2018
@304NotModified 304NotModified added this to the 4.5 rc5 milestone Feb 5, 2018
@304NotModified
Copy link
Member

thx!

@snakefoot snakefoot mentioned this pull request Feb 6, 2018
@snakefoot snakefoot deleted the LoggingConfigurationFindTarget branch April 4, 2020 17:37
@snakefoot snakefoot modified the milestones: 4.5 rc5, 4.5 Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report / Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants