You might try using the predefined system properties, like:
${user.home}
see http://logback.qos.ch/manual/configuration.html#variableSubstitutionfor
more information.
(*Chris*)
On Thu, May 16, 2013 at 10:23 AM, Tony Trinh <[email protected]> wrote:
> Try environment variables [1]:
>
> *Linux:*
> ${HOME}/logs
>
> *Windows:*
> ${USERPROFILE}/logs (C:\Users\Tony\logs)
> ${APPDATA}/logs (C:\Users\Tony\AppData\Roaming)
>
> *Linux or Windows:*
> ${HOME:-${USERPROFILE}}/logs
>
> tries $HOME first; if it doesn't exist, it tries $USERPROFILE
>
>
> [1] http://logback.qos.ch/manual/configuration.html#nestedSubst
>
>
> On Thu, May 16, 2013 at 12:08 PM, Donald McLean <[email protected]>wrote:
>
>> 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?
>>
>> Thank you,
>>
>> Donald
>>
>> _______________________________________________
>> Logback-user mailing list
>> [email protected]
>> http://mailman.qos.ch/mailman/listinfo/logback-user
>>
>
>
> _______________________________________________
> Logback-user mailing list
> [email protected]
> http://mailman.qos.ch/mailman/listinfo/logback-user
>
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user