cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Debug

iwkse
Star Contributor
Star Contributor
Hi all,

I'm interested in a proper and useful way to debug Alfresco. I don't know much about log4j package but i found this
http://dev.alfresco.com/resource/docs/java/repository/overview-summary.html
which seems interesting to me and I would like to know if to debug it, I may just do something like:

create a dev-log4j.properties file in tomcat/shared/classes/alfresco/extension and supposing to debug the package
org.alfresco.repo.activities I would add a line like:

log4j.logger.org.alfresco.repo.activities=debug

Is this enough, I am guessing it right?

Other useful information about debugging Alfresco are welcome!

Regards
S.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Yes that's fine to control the logging.

You should also look at the log4j documentation - there's a lot more fancy stuff you can do.   You can also control logging through the JMX console, so for example if you are on WebSphere then the logging will be integrated with the other logging on the admin console.

If you are interested in developing then you may also want to look at the java debugger since that's the other tool for problem diagnosis.

iwkse
Star Contributor
Star Contributor
Thanks a lot..useful informations.

best regards,
S.