In order to use log4j logging you need to define a file called
log4j.properties that needs to be on your classpath for the file
to be read by log4j. I used the file in the conf dir to start with and
here is the file I'm running with.

################### log4j.properties ################################
log4j.rootCategory=INFO,A1

# A1 -- console
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
# Print the date in ISO 8601 format
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n


############################################################################
#####
# Print only messages of priority WARN or above in the package com.foo.
#log4j.category.org.apache.stratum=INFO,WF


log4j.category.org.apache.jcs=INFO,A1
log4j.category.org.apache.jcs.acess=INFO,A1
log4j.category.org.apache.jcs.engine.control=INFO,A1
log4j.category.org.apache.jcs.engine.memory.shrinking=INFO,A1
log4j.category.org.apache.jcs.config=INFO,A1
log4j.category.org.apache.jcs.auxiliary.disk=INFO,A1
log4j.category.org.apache.jcs.auxiliary.lateral.javagroups=INFO,A1
log4j.category.org.apache.jcs.auxiliary.lateral.xmlrpc=INFO,A1
log4j.category.org.apache.jcs.auxiliary.remote=INFO,A1
log4j.category.org.apache.jcs.auxiliary.remote.server=INFO,A1
log4j.category.org.apache.jcs.utils=INFO,A1

################### log4j.properties ################################
-----Original Message-----
From: Michael Register [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 11:08 AM
To: [EMAIL PROTECTED]
Subject: Logging in JCS (how to)


Can someone tell me how the logging works... I've
used log4j but it seem as though "log kit" is being used.
Is there a configuration file or doucment soneone can
point me to get me started that works with the jcs code.

-Mike

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to