Hi Aaron, I looked for some file with name log4j.xml or log4j.properties in JCS jar. Din't find any.
I was not aware of the default behaviour of log4j. Thanks for pointing that out. I found a couple of threads on Log4j forums dating somewhere in 2004-2005. Around that time default level was DEBUG. To enable DEBUG logs of JCS I created a log4j.properties file of my own and placed it in classpath. Following are the contents of properties file log4j.appender.dest1=org.apache.log4j.ConsoleAppender log4j.appender.dest2=org.apache.log4j.FileAppender log4j.appender.dest1.layout=org.apache.log4j.PatternLayout log4j.appender.dest2.layout=org.apache.log4j.PatternLayout log4j.appender.dest2.File=example.log log4j.rootCategory=DEBUG, dest1, dest2 I am not getting any DEBUG level logs yet. Your inputs are highly awaited. Thanks, Rupesh K On 7/12/06, Aaron Smuts <[EMAIL PROTECTED]> wrote:
The logging is done via commons-logging, which is pretty much just a wrapper around log4j. You don't change the logging to debug, you change the log level to debug so that the log messages that are written at the debug level will be logged. Read the log4j documentation for more information on how to configure the logger. --- Rupesh Khandelwal <[EMAIL PROTECTED]> wrote: > Hi, > > For last few days I have been studying JCS for its > suitability for my > application. I have read Product Documentation. I > have been through last > four months mails on JCS Users List. > > To improve my understanding of how JCS works I want > to set the JCS logging > level to DEBUG. How can I do that? > > Log messages on console currently are as under > > Jul 12, 2006 11:20:34 AM > org.apache.jcs.engine.control.CompositeCacheManagerconfigure > INFO: Creating cache manager from config file: > /cache.ccf > Jul 12, 2006 11:20:34 AM > org.apache.jcs.utils.threadpool.ThreadPoolManagerloadConfig > INFO: thread_pool.default PoolConfiguration = > useBoundary = > [true]boundarySize = [2000]maximumPoolSize = > [150]minimumPoolSize = > [4]keepAliveTime = [300000]whenBlockedPolicy = > [RUN]startUpSize = [4] > Jul 12, 2006 11:20:34 AM > org.apache.jcs.engine.control.CompositeCacheConfigurator > setDefaultAuxValues > INFO: Setting default auxiliaries to DC > Jul 12, 2006 11:20:34 AM > org.apache.jcs.engine.control.CompositeCacheConfiguratorsetDefaultCompositeCacheAttributes > INFO: setting defaultCompositeCacheAttributes to [ > useLateral = true, > useRemote = true, useDisk = true, maxObjs = 1000, > maxSpoolPerRun = -1 ] > Jul 12, 2006 11:20:35 AM > org.apache.jcs.engine.control.CompositeCacheConfiguratorsetDefaultElementAttributes > . > . > . > > > Warm Regards, > Rupesh K > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
