You can pass -DbaseDir=/some/other/folder on the command line used to start 
CAS. All of the properties in log4j2.xml can be overridden via system 
properties because they are referenced as ${sys:baseDir} and if there is no 
system property it will fall back to the properties defined in log4j2.xml. 
Alternatively you could have your own log4j2.xml file in your 
src/main/resources of your overlay project and it will end up in the 
classpath before the one in the CAS jar. 


On Thursday, August 19, 2021 at 10:49:30 AM UTC-4 Yan Zhou wrote:

> Hello,
>
> I am using CAS6.4 overlay.  I package the war and deploy to tomcat.
>
> cas-server-webapp-tomcat-6.4.0-RC6.jar   has log4j2.xml that points to 
> /tmp/logs.
>
> I have already set this in my cas.properties.
>
> # mine is Windows
> logging.config=c:/..../apache-tomcat-cas6/lib/cas6/log4j2.xml
>
> the log4j2.xml is observed. however,  I still see /tmp/logs being 
> created.  How can I disable the use of log4j2.xml inside  
> cas-server-webapp-tomcat-6.4.0-RC6.jar
>
> Thx!
> Yan
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/b20d66c1-77eb-40ba-bc0b-a0314b029109n%40apereo.org.

Reply via email to