I have a custom-log4j2.properties which sets
appender.rolling.fileName=/opt/tomcat/updated/logs/test.log
This works, and Alfresco logs to this file (test.log, not alfresco.log). However, catalina.out is telling me that it's "Unable to create file alfresco.log java.io.IOException: Permission denied".
Question: what is trying to create 'alfresco.log'? Where is it trying to create it? How do I fix this?
Well, I've got half an answer. webapps/alfresco/WEB-INF/classes/log4j2.properties explicitly sets appender.rolling.fileName to 'alfresco.log'. If I replace this with an absolute path to the required file the error is fixed and logging works.
Does anyone happen to know how I over-ride this property, without explicitly changing this file?
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.