Lets say we need to change log file location to "/home/services/wso2logs" instead of default
- Change following file locations in
/repository/conf/log4j.properties as follows.
- Change below value in
/repository/conf/tomcat/catalina-server.xml as follows to change http_access_management_console.log file location.
- We still have patches.log file and empty wso2carbon.log and wso2carbon-trace-messages.log in the default location. Since patch application process is done even before the carbon server is started those log configuration file is located within org.wso2.carbon.server-
.jar file. So as a workaround to move these log files we can open the log4j.properties file within /lib/org.wso2.carbon.server- .jar and change the below properties as follows.
- Make sure write permission is there for the new location and restart the service. Now all the log files are created in the new location.