My application has logging system created by me. However i would like to replace it by log4j2. But i've met a problem with configuration of logging directory in log4j2. Yes, i know there is possibility to log into fixed directory described in config file:
<RandomAccessFile name="FILE" fileName="l4j2/${date:yyyy-MM-dd_hh-mm-ss}.log" append="true" immediateFlush="false">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-6p %C{1}.%t:%L >>> %m%n"/>
</RandomAccessFile >
But i want to log data in users "My document" directory which can be specific during launching of java app. Is it even possible?