KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: sivaprakashcg on October 15, 2007, 11:13:14 am

Title: Enable Debug mode for log4j in admin side
Post by: sivaprakashcg on October 15, 2007, 11:13:14 am
Hi,
      Any body knows.. how to enable the debug mode in admin side...
Title: Re: Enable Debug mode for log4j in admin side
Post by: julie on October 15, 2007, 03:01:07 pm
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