Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

FileTarget - Removed explicit File.Create to not trigger file-scanners - #5381

#5381
Merged
snakefoot merged 1 commit into
NLog:devNLog/NLog:devfrom
snakefoot:fix-UpdateCreationTimesnakefoot/NLog:fix-UpdateCreationTimeCopy head branch name to clipboard
Oct 24, 2023
Merged

FileTarget - Removed explicit File.Create to not trigger file-scanners#5381
snakefoot merged 1 commit into
NLog:devNLog/NLog:devfrom
snakefoot:fix-UpdateCreationTimesnakefoot/NLog:fix-UpdateCreationTimeCopy head branch name to clipboard

Conversation

@snakefoot

@snakefoot snakefoot commented Oct 24, 2023

Copy link
Copy Markdown
Contributor

FileTarget should not momentarily release FileStream-handle on file-creation, as it might be locked-out by file-scanner that take exclusive lock (Thus preventing NLog from actually logging just after file-creation). See also #5379

But still trying to keep work-around for Windows FileSystem Tunneling (avoid newly-created-file re-using timestamp from from previous-file after file-archive/file-move). See also: #1100 and #1125

@snakefoot snakefoot added enhancement Improvement on existing feature file-target labels Oct 24, 2023
@snakefoot
snakefoot force-pushed the fix-UpdateCreationTime branch from ea9d06a to 0248b51 Compare October 24, 2023 19:20
@snakefoot
snakefoot force-pushed the fix-UpdateCreationTime branch 2 times, most recently from 802265f to cd2b44a Compare October 24, 2023 19:33
@snakefoot snakefoot changed the title FileTarget - Removed explicit File.Create since it trigger file-scanners FileTarget - Removed explicit File.Create to not trigger file-scanners Oct 24, 2023
@snakefoot
snakefoot force-pushed the fix-UpdateCreationTime branch 8 times, most recently from 7988a46 to fcf3750 Compare October 24, 2023 20:18
@snakefoot
snakefoot enabled auto-merge (squash) October 24, 2023 20:20
@snakefoot
snakefoot force-pushed the fix-UpdateCreationTime branch 2 times, most recently from cb03ad4 to af163fe Compare October 24, 2023 20:27
@snakefoot
snakefoot force-pushed the fix-UpdateCreationTime branch from af163fe to 78b6605 Compare October 24, 2023 20:55
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

88.9% 88.9% Coverage
0.0% 0.0% Duplication

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 size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.