<div dir="ltr"><div><div><div><div>Try <span id="goog_1677772314"></span><a href="/"></a><span id="goog_1677772315"></span>environment variables [1]:<br><br><b>Linux:</b><br><span style="font-family:courier new,monospace">${HOME}/logs</span><br>

<br></div><b>Windows:</b><br><span style="font-family:courier new,monospace">${USERPROFILE}/logs</span>    (C:\Users\Tony\logs)<br></div><span style="font-family:courier new,monospace">${APPDATA}/logs</span>   (C:\Users\Tony\AppData\Roaming)<br>

<br></div><div><b>Linux or Windows:</b><br></div><span style="font-family:courier new,monospace">${HOME:-${USERPROFILE}}/logs</span><br></div><br>     tries $HOME first; if it doesn't exist, it tries $USERPROFILE<br>
<br>
<br>[1] <a href="http://logback.qos.ch/manual/configuration.html#nestedSubst">http://logback.qos.ch/manual/configuration.html#nestedSubst</a><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 16, 2013 at 12:08 PM, Donald McLean <span dir="ltr"><<a href="mailto:dmclean62@gmail.com" target="_blank">dmclean62@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm using a TimeBasedRollingPolicy for an app that may be run under different user names and I need the files to go to a "logs" directory in the running user's home directory "~/logs". Using "~/logs/" doesn't work in the <fileNamePattern>, but is there anything that will work?<div>


<br></div><div>Thank you,</div><div><br></div><div>Donald</div></div>
<br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>