Using the WSAS logging configuration UI, you can change the log levels
of the required loggers at runtime, without having to edit the
log4j.properties file.

Azeez

On Fri, Apr 24, 2009 at 9:30 AM, Selvaratnam Uthaiyashankar
<[email protected]> wrote:
> Hi Ben,
>
> You have to edit log4j.properties in <WSAS Installed
> Directory>\webapps\ROOT\WEB-INF\classes\ and include following line
> log4j.logger.org.apache.stonehenge.stocktrader=DEBUG
>
> I have included this info in the wiki. Thanks for pointing it out.
>
> Regards,
> Shankar
>
> On Fri, Apr 24, 2009 at 2:00 AM, Ben Dewey <[email protected]> wrote:
>
>> I have never used the org.apache.commons.logging.LogFactory before and I'm
>> wondering where I can set the property for isDebugEnabled?
>>
>>
>> The OrderProcessorImpl file has some logging, that I'd like to see
>> outputted in the WSAS Console:
>>
>> if (logger.isDebugEnabled()) {
>>        logger.debug("OrderProcessorImpl.SubmitOrder(SubmitOrder)");
>>        OrderDataBean odb = submitOrderTransactedQueue.getOrder();
>>        logger.debug("OrderID :" + odb.getOrderID() + "\nOrderType :"
>>                        + odb.getOrderType() + "\nSymbol :" +
>> odb.getSymbol()
>>                        + "\nQuantity :" + odb.getQuantity() + "\nOrder
>> Status :"
>>                        + odb.getOrderStatus() + "\nOrder Open Date :"
>>                        + odb.getOpenDate() + "\nCompletionDate :"
>>                        + odb.getCompletionDate());
>> }
>>
>>
>>
>> Ben Dewey
>>
>
>
>
> --
> S.Uthaiyashankar
> Software Architect
> WSO2 Inc.
> http://wso2.com/ - "The Open Source SOA Company"
>



-- 
Thanks
Afkham Azeez

Blog: http://afkham.org
Developer Portal: http://www.wso2.org
WSAS Blog: http://wso2wsas.blogspot.com
Company: http://wso2.com
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

Reply via email to