Location of alfresco.log, share.log

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

Location of alfresco.log, share.log

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

2 Replies
cesarista
Advanced

Re: Location of alfresco.log, share.log

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.

nadeaumr
Active Member

Re: Location of alfresco.log, share.log

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