Skip to content

Add support for path placeholders in log file names - #353

Open
krisbiradar wants to merge 2 commits into
serilog:devfrom
krisbiradar:feat-add-path-placeholders
Open

Add support for path placeholders in log file names#353
krisbiradar wants to merge 2 commits into
serilog:devfrom
krisbiradar:feat-add-path-placeholders

Conversation

@krisbiradar

Copy link
Copy Markdown

Introduces the ability to use {interval} and {sequence_number} placeholders in log file paths, which are replaced with actual values during log file creation. Adds PathPatternType enum to specify pattern types and updates tests to verify placeholder replacement functionality.

Introduces the ability to use {interval} and {sequence_number} placeholders in log file paths, which are replaced with actual values during log file creation. Adds PathPatternType enum to specify pattern types and updates tests to verify placeholder replacement functionality.
@krisbiradar

krisbiradar commented Aug 27, 2025

Copy link
Copy Markdown
Author

Hi @nblumhardt , This issue was raised on the serilog core repo 2189 it allows the interval and sequence number to be placed anywhere in the path than at the end. please let me know if this is useful or you require any changes in order to avoid breaking other functionalities.

@krisbiradar

Copy link
Copy Markdown
Author

Hi, @nblumhardt
is this needed or shall I go ahead and close this PR ?

@nblumhardt

Copy link
Copy Markdown
Member

Hi @krisbiradar,

The linked issue points to another thread on this; it's not something we want to include, but thanks all the same.

serilog/serilog#2189 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants