<div dir="ltr">You might try using the predefined system properties, like:<div><br></div><div style>${user.home}</div><div style><br></div><div style>see <a href="http://logback.qos.ch/manual/configuration.html#variableSubstitution">http://logback.qos.ch/manual/configuration.html#variableSubstitution</a> for more information.</div>
<div style> (*Chris*)</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 16, 2013 at 10:23 AM, Tony Trinh <span dir="ltr"><<a href="mailto:tony19@gmail.com" target="_blank">tony19@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"><div><div><div><div>Try <span></span><a></a><span></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" target="_blank">http://logback.qos.ch/manual/configuration.html#nestedSubst</a><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div class="h5">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>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">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>
<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>