unable to change Pega log directory

Hi,

In order to customized pega’s logging directory i updated

export JAVA_OPTS="$JAVA_OPTS -Dpega.logdir =

as well as updated the same in standalone.conf. But pega still creating log files in its default directory. It is not picking up the path i provided in pega.logdir.

In prlog4j2.xml each log file configured as example below.

<RollingRandomAccessFile name=“PEGA” fileName=“${sys:pega.logdir}/PegaRULES.log”

Previously i tried by replacing ${sys:pega.logdir} with in prlog4j2.xml but that didnt work either.

Can you please point what am i missing here?

Someone please respond. This issue is kind of roadblaocker for me.

@Abhishekg0292

have you redeployed after the change?

I think that for such changes, restarting is not enough

Regards

Anthony

@Abhishekg0292

I finally able to resolve this issue. i was extracting Prweb.war and repacakging it on my windows machine by using jar commands. For some reason the WEB INF folder was missing after repacakaging. so instead of extraction i only replaced prlog4j2.xml by using command jar -uvf and redeployed it. all the log files are now being created in customized target folder.