Hi,

I want to get a log from a perticular class. I have used LogViewerClient.
Please check my below code snaps.

I need to get the below log.

[2015-10-08 12:35:38,966]  WARN - TimeoutHandler Expiring message ID :
> urn:uuid:354104e6-eea7-41fd-88c7-de19d0b5a27f; dropping message after
> timeout of : 10 seconds



// Initialized the client

LogViewerClient logViewerClient = new
LogViewerClient(amServer.getBackEndUrl(),
amServer.getSessionCookie());

// Calling it with parameters

LogEvent[] timeoutLogs = logViewerClient.getLogs("WARN",
"TimeoutHandler", "", "AM");

This returns empty array.


I could get the system logs through below method.

LogEvent[] logEvents = logViewerClient.getAllSystemLogs();


How can I get above mention log?


-- 

Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data & APIs Technologies Team
Mobile : +94 773922820

<http://stackoverflow.com/users/515034>
<http://lk.linkedin.com/in/abimaran>  <http://www.lkabimaran.blogspot.com/>
<https://github.com/abimarank>  <https://twitter.com/abimaran>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to