cancel
Showing results for 
Search instead for 
Did you mean: 

Location of alfresco.log, share.log

bloo
Champ in-the-making
Champ in-the-making

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

1 ACCEPTED ANSWER

cesarista
World-Class Innovator
World-Class Innovator

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.

View answer in original post

3 REPLIES 3

cesarista
World-Class Innovator
World-Class Innovator

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
Confirmed Champ
Confirmed Champ

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?