Skip to content

Conversation

@wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Jul 23, 2021

Fixes #34595

@ghost ghost added the area-runtime label Jul 23, 2021
_path = loggerOptions.LogDirectory;
}

_fileName = loggerOptions.FileName;
Copy link
Member

Choose a reason for hiding this comment

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

If the file name changes should the file number reset, or be rescanned for?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I think so, that'd be a way for users to get around the 10,000 file a day limit if they wanted to. But it might be somewhat tricky - e.g. OnChange fires in the middle of execution of WriteMessagesAsync, causing the FileNumber to go back to zero. If this happens while we're scanning through some previous files to find out if they exist, it could cause us to suffix the first file with the new name with something nonzero. I'll file a follow-up issue for this one, for now I think it's fine if the numbering for the new file names pick up where the old ones left off.

Copy link
Member Author

Choose a reason for hiding this comment

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

@wtgodbe
Copy link
Member Author

wtgodbe commented Jul 27, 2021

Updated for feedback

@wtgodbe wtgodbe merged commit a9a2d19 into main Jul 28, 2021
@wtgodbe wtgodbe deleted the wtgodbe/W3CFileFix branch July 28, 2021 19:42
@ghost ghost added this to the 6.0-rc1 milestone Jul 28, 2021
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares

Projects

None yet

Development

Successfully merging this pull request may close these issues.

W3CLogger should write to a new file when Fields change

6 participants