serilog-settings-appsettings
serilog-settings-appsettings copied to clipboard
Relative path support for bufferBaseFilename property when set on config?
May I check if the this package (for use with bufferBaseFilename eg) supports relative paths? When configured in the app.config such as:
<add key="serilog:write-to:Seq.bufferBaseFilename" value="~/app_data/seq_buffer" />
Seq writes on this system to \windows\system32\inetsrv~\app_data Ideally it would of written to the relative path of the web app.
Hi @jafin - since environment variables can be substituted into values, there's a technique detailed in https://github.com/serilog/serilog/issues/454#issuecomment-113091429 for doing this. HTH!~
I think that the APPL_PHYSICAL_PATH
environment variable would emulate ~
adequately in this case.