• Welcome to KonaKart Community Forum. Please login or sign up.
 

Enable Debug mode for log4j in admin side

Started by sivaprakashcg, October 15, 2007, 11:13:14 am

Previous topic - Next topic

sivaprakashcg

Hi,
      Any body knows.. how to enable the debug mode in admin side...

julie

October 15, 2007, 03:01:07 pm #1 Last Edit: October 15, 2007, 03:02:45 pm by julie
Hello,

In versions up to and including KonaKart 2.2.0.6 you set the konakart-logging.properties logging properties under the konakartadmin webapp... (in webapps/konakartadmin/WEB-INF/classes) eg, these are usually the useful paths to set :

log4j.logger.org.apache.torque.util.BasePeer  = DEBUG
log4j.logger.com.konakart                           = DEBUG
log4j.logger.com.konakartadmin                    = DEBUG


In KonaKart 2.2.0.7 and beyond there is a new logging option - this is really most useful as a diagnostic tool.   The idea is that it enables "client-side" logging of the Admin APIs.   The KonaKart Admin App uses the Admin APIs so it can be used to diagnose problems in the Admin App but with the logging directed to the server log.   Note that this can be a useful tool for diagnosing problems in any custom interface you might build to the Admin APIs - it allows you to send a logging message to the server log through the API.   

The next release of KonaKart (v2.2.0.7) is quite close to being ready...  Watch out for it later this week.

I wouldn't use DEBUG for the above quantities for too long because there will be a lot of diagnostic output to wade through!

good luck!
Julie