Hello,
The location of alfresco.log and share.log is in the current directory when starting tomcat, which is already a very stupid thing to do since you will find these files anywhere your shell will be when you run tomcat's startup.sh.
Apparently it is not possible to fix this location to something sensible without changing the log4j.properties file in alfresco webapps ??? I tried to use a "dev-log4j.properties or log4.properties in shared/classes/alfresco/extension as advised by an old answer but it doesn't work. Is there a clean way to define this location or should administrators cd to a suitable log directory whenever they start tomcat ?
thank you
Solved! Go to Solution.
Hi:
Basically, you can go first to $TOMCAT_HOME/logs and then startup. You can do it in your own startup script or in alfresco.sh
https://www.zylk.net/en/web-2-0/blog/-/blogs/simple-tips-about-alfresco-logs
You can do it also with log4j.properties, but it involves more configuration for alfresco, share, solr or tomcat...
Regards.
--C.
Hi:
Basically, you can go first to $TOMCAT_HOME/logs and then startup. You can do it in your own startup script or in alfresco.sh
https://www.zylk.net/en/web-2-0/blog/-/blogs/simple-tips-about-alfresco-logs
You can do it also with log4j.properties, but it involves more configuration for alfresco, share, solr or tomcat...
Regards.
--C.
Hi,
Here's what i did and it's working fine.
I copied log4j.properties (tomcat/webapps/alfresco/web-inf/classes) to tomcat/shared/classes/alfresco/extension and renamed it custom-log4j.properties. Edited it to change logs path.
Regards,
Marc
custom-log4j.properties will change the location for alfresco.log, but what did you do for share.log file location?
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.