How to set the log4j.logger.(..)jscript=debug within the Maven SDK
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2013 06:44 AM
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
I suppose it is a setting inside the POM but i can not figure out how to achieve it.
Any suggestions?
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?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2013 06:13 AM
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.
