cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the log4j.logger.(..)jscript=debug within the Maven SDK

gpeter
Champ in-the-making
Champ in-the-making
Working with Maven SDK inside Eclipse, used the amp archetype to create a project and use "integration-test Pamp-to-war" to test stuff.
I need to be able to see the js log output, so i need to set to "debug" the
log4j.logger.org.alfresco.repo.jscript
in the log4j.properties file in the …\classes\ directory. I can not do it directly from the file itself since it gets rewritten everytime i run the tomcat plugin.
I suppose it is a setting inside the POM but i can not figure out how to achieve it.
Any suggestions?
1 REPLY 1

gpeter
Champ in-the-making
Champ in-the-making
i managed to find a solution, i have created a
srs/main/amp/ -> config/ -> log4j.properties 
file that seems to override the log4j.properties of the war, so there i can set to debug all what i needed. I don't know if it is a "best practice" solution but it works: I can now see in Eclipse console the output of logger.log of my js.