Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative path support for bufferBaseFilename property when set on config? #35

Open
jafin opened this issue Nov 20, 2018 · 2 comments
Open

Comments

@jafin
Copy link

jafin commented Nov 20, 2018

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.

@nblumhardt
Copy link
Member

Hi @jafin - since environment variables can be substituted into values, there's a technique detailed in serilog/serilog#454 (comment) for doing this. HTH!~

@taspeotis
Copy link

taspeotis commented Nov 21, 2018

I think that the APPL_PHYSICAL_PATH environment variable would emulate ~ adequately in this case.

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

No branches or pull requests

3 participants