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

Jump to solution

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 Solution

Accepted Solutions
cesarista
Customer

Re: Location of alfresco.log, share.log

Jump 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.

View solution in original post

3 Replies
cesarista
Customer

Re: Location of alfresco.log, share.log

Jump 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.

nadeaumr
Customer

Re: Location of alfresco.log, share.log

Jump to solution

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

udaikumar26
Customer

Re: Location of alfresco.log, share.log

Jump to solution

custom-log4j.properties will change the location for alfresco.log, but what did you do for share.log file location?