Wednesday, August 24, 2011

Log4J WebSphere Portal

log4j.xml

---------------------------------------------------------------







































-----------------------------------------------------------------


Above file put under src folder

Lib File : log4j-1.2.16.jar , put in WebContent\WEB-INF\lib



Sample code in Java file

import org.apache.log4j.Logger;
private static Logger logger = Logger.getLogger(Test.class);

if (logger.isInfoEnabled()) {
logger.info("Test message"));


No comments:

Post a Comment

Followers