10-14-2019 09:07 AM
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
10-15-2019 03:45 AM
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.
10-15-2019 03:45 AM
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.
10-15-2019 09:45 AM
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
01-26-2021 02:47 PM
custom-log4j.properties will change the location for alfresco.log, but what did you do for share.log file location?
Explore our Alfresco products with the links below. Use labels to filter content by product module.