Specifying base address for web.config

35 views
Skip to first unread message

paolo ponzano

unread,
Jan 4, 2016, 5:54:09 AM1/4/16
to Serilog
Hello,
I was wondering if there's a keyword as {CurrentDirectory} or something to be written inside this path

<add key="serilog:write-to:RollingFile.pathFormat" value="C:\SVN\Projects\project\trunk\XXX.Web\Logs\Log-{Date}.log" />
 <add key="serilog:write-to:RollingFile.outputTemplate" value="{Timestamp:HH:mm:ss} [{Level}] [{SourceContext}] {Message}{NewLine}{Exception}" />

in order to not pass the full path... in a wpf project I've specified .\logs and it works... in web applications not

Thanks
Paolo

nblum...@nblumhardt.com

unread,
Jan 4, 2016, 6:08:27 AM1/4/16
to Serilog
Hi Paulo,

There's a trick for working around this posted here: https://github.com/serilog/serilog/issues/454#issuecomment-113091429

Hope this helps,
Nick

paolo ponzano

unread,
Jan 4, 2016, 8:27:40 AM1/4/16
to Serilog
Thanks a lot!


Reply all
Reply to author
Forward
0 new messages