log4j for Alfresco Repository AMP

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

log4j for Alfresco Repository AMP

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
art99trash
Active Member II

Re: log4j for Alfresco Repository AMP

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.