Can't create alfresco.log

cancel
Showing results for 
Search instead for 
Did you mean: 
atTheBeach
Active Member II

Can't create alfresco.log

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?

2 Replies
atTheBeach
Active Member II

Re: Can't create alfresco.log

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?

cristinamr
Advanced

Re: Can't create alfresco.log

Good morning.

Check this link. It might help you :-)

Let us know the results.

Cheers,

Cris.

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc