Hi,
The debug information of axis2 is writing in the log file of my service,
this is my code:
public class Prueba{
static Logger logger = Logger.getLogger(CPSoapApiWSII.class);
Properties log = new Properties();
public String getMensaje(String parametro){
String mensaje="Ejecutado "+parametro;
try{
log.load(Prueba.class.getResourceAsStream("MyLog4j.properties"));
PropertyConfigurator.configure(log);
logger.warn("Log de Warning");
}catch(Exception e){
logger.warn(e.toString());
}
return mensaje;
}
}
And the log file is:
2009-03-11 18:09:03 DEBUG Input contentType (text/xml; charset=utf-8)
2009-03-11 18:09:03 DEBUG CharSetEncoding from content-type (utf-8)
2009-03-11 18:09:03 DEBUG createSOAPEnvelope using Builder (class
org.apache.axis2.builder.SOAPBuilder) selected from type (text/xml)
2009-03-11 18:09:03 DEBUG char set encoding set from default =utf-8
2009-03-11 18:09:03 DEBUG [MessageContext:
logID=urn:uuid:4A346B3230FFC2B9BA1236805743437] Checking pre-condition
for Phase "Transport"
2009-03-11 18:09:03 DEBUG [MessageContext:
logID=urn:uuid:4A346B3230FFC2B9BA1236805743437] Invoking phase "Transport"
2009-03-11 18:09:03 DEBUG [MessageContext:
logID=urn:uuid:4A346B3230FFC2B9BA1236805743437] Invoking Handler
'RequestURIBasedDispatch
...
Any idea?
Thanks.