Logging problem with IBM Websphere 6.1
Hallo all,
I am using a J2EE application with IBM Websphere Application Server 6.1. It generates and builds the EJB and ear files via Ant. I am now trying to log the data to the native_stdout.log data of WAS 6.1 I have written (as an example) this code chunk
import java.util.logging.Level;
import java.util.logging.Logger;
public class StorageLocationBean extends StorageLocationSoapBindingImpl {
public CheckStorageLocationResponse check(CheckStorageLocationRequest request) throws java.rmi.RemoteException {
Logger logger = Logger.getLogger("com.daimlerchrysler.sorry.servic e.storagelocation.StorageLocationBean");
logger.info("Web service storagelocation.check has been called");
logger.log(Level.INFO, "Web service storagelocation.check has been called");
logger.logp(Level.SEVERE, getClass().getName(), "setCsfTicketId", "A severe level log"); CheckStorageLocationResponse response = new CheckStorageLocationResponse();
response.setIncidentId("1234567");
response.setCsfTicketId(request.getCsfTicketId());
return response;
}
}
So I think there is nothing wrong with that code but when I run the program from my MyEclipse 5.1.1 GA it doesn't write the log info to the log data. I am using J2EE 1.4 and WAS 6.1. Can anyone help me to solve this problem?
Your attitude determines your altitude
__________________
Your attitude determines your altitude
|