Remsy
> I still cannot log messages from Task, although no problem from mediator 
> (extend AbstractMediator). For instance, I wrote:
>
> protected static final Log log = 
> LogFactory.getLog(SynapseConstants.TRACE_LOGGER);
> .
> .
> .
> log.trace("execute");
>
> is there something similar to AbstractMediator for the scheduled tasks ?
>   
No.. but your above code would work when trace is enabled.. and thats 
meant to trace sequences..

It would be better to write:

protected static final Log log = 
LogFactory.getLog("your.package.and.Class.class");

...
log.trace("execute");

and set the category for your package as required (standard log4j 
configuration) on the log4j.properties file

asankha

_______________________________________________
Esb-java-user mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user

Reply via email to