cancel
Showing results for 
Search instead for 
Did you mean: 

module log4j.properties doesn't work?

jharrop
Champ in-the-making
Champ in-the-making
http://wiki.alfresco.com/wiki/Developing_an_Alfresco_Module#log4j.properties says:
As of Alfresco version 2.2, each module can have its own log4j.properties file, which is placed in the same directory as module.properties. The collection of log4j.properties files within all modules installed into the alfresco.war act collectively to augment/override the Alfresco webapp's global WEB-INF/classes/log4j.properties file.

Although my module works properly in other respects, the log4j.properties file is ignored.  I have to replace the one in WEB-INF/classes for my log4j.properties to have any effect.

Does anyone agree / beg to differ?

I'm using 2.9 SVN.

cheers

Jason
4 REPLIES 4

mikeh
Star Contributor
Star Contributor
Version 2.2 is a different code branch to 2.9, hence 2.9 doesn't contain that feature.

Alfresco versioning is slightly confusing at the moment, but features that are new to 2.2 aren't in 2.9 and vice versa. We hope to straighten this all out soon!

Thanks
Mike

lvs
Champ in-the-making
Champ in-the-making
Hi,

I am using Enterprise Version 2.2 (beta) and I tried to make it work but I did not get it.
As said in the wiki, I put my log4j.properties  in the same package as my module.properties, and I can see that after deploy, it is copied to WEB-INF/classes/alfresco/module/{module.id}/log4j.properties but it does not seem to be read.

I think my log4j.properties should be ok as the logging was working when configured directly in WEB-INF/classes/log4j.properties.

Do you have any idea of what I can be doing wrong?

Thank you for your help
Laura

janv
Employee
Employee
This was checked-in after the 2.2 Enterprise Beta release.

http://forums.alfresco.com/viewtopic.php?t=10756
http://issues.alfresco.com/browse/AR-1744

I have updated the wiki page. It will be part of the final 2.2 Enterprise release (and will also get merged to HEAD / 2.9 at some point).

Regards,
Jan

lvs
Champ in-the-making
Champ in-the-making
Thanks!