It works now, I just wasn't selecting the appropiate debug level on the log 
settings.

thanks

remsy

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Asankha C. Perera
Sent: September 19, 2008 11:37 AM
To: [email protected]
Subject: Re: [esb-java-user] using the system logger


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

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

Reply via email to