serilog / serilog-extensions-logging-file

Add file logging to ASP.NET Core apps in one line of code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to specify a custom format for the {Date} placeholder in the file name?

KarloX2 opened this issue · comments

Hi, I noticed that placing the {Date} placeholder in the pathFormat argument of the AddFile() extension method will make the lib put the current date in the format "yyyyMMdd" into the name.

Is there an option to specify a customized format. Other log files in my system use underlines between the poritions, i.e. "yyyy_MM_dd" and I'd like serilog to do the same.

Thanks