WebSphere provide its own logger so with java easily logger can be integrate. using (import java.util.logging.Logger) then create the object of the logger inside class.
Its having few simple steps to configure it with project. this configuration is with EJB.
class TestLoger{
private static Logger logger = Logger.getLogger("TestLoger");
public void toDoMethod(){
logger.info("info message");
/* to do code */
logger.warning("warning message");
}
}
log file location ==> c:\opt\IBM\WebSphere\Profiles\ base\logs\server\SystemOut.log
Tags:
Dev