Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Error using Log4j with Livesite3.0
AnjaniKumar
Hi All,
I am facing a problem using Log4j with Livesite3.0. I have edited/configured log4j.xml used by livesite components to use it for my code but when i deployed the jar file and run it , i am getting an error. if i put the
livesite-runtime.jar
which includes the io package in my workspace and configure my eclipse for this and test with a test class, it is working fine. com.interwoven.livesite.common.io.Logger is the package in
livesite-runtime.jar
that contains the Logger class.
Please see the attached document for the java source code i am using and the error i am getting.
Please help me in resolving this.
Find more posts tagged with
Comments
tec_iwov
the log wrapper class was removed, it was a thin wrapper on log4j. We've migrated the app to use commons-logging.
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* the logger
*/
protected final Log mLogger = LogFactory.getLog(this.getClass());