cancel
Showing results for 
Search instead for 
Did you mean: 

log4j for Alfresco Repository AMP

nairouz
Champ in-the-making
Champ in-the-making
How to use log4jfor Alfresco Repository AMP?

I gave it a try but nothing land in catalina.out nor alfresco.log.

I think that I have to add some configurations to my log4j.properties file :

/content-repo/src/main/amp/config/alfresco/module/content-repo/log4j.propertie
1 REPLY 1

art99trash
Star Contributor
Star Contributor
I just added these lines to
<PROJECT_NAME>/src/main/amp/config/alfresco/module/<project-name>/log4j.properties

Of course, the <packagename-of-java-file> should be replaced by the actual package name of your
java file

log4j.logger.org.alfresco.repo.jscript=DEBUG
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=DEBUG

log4j.logger.<packagename-of-java-file>=DEBUG

I hope this helps.