Worklight 6.2 custom client side log collection

220 views Asked by At

We want to be able to collect and centralise client logs in worklight console. (WL v6.2)

To my understanding, we can create a Log Profile in Worklight console, and collected client logs can be viewed there where WL analytics is not used.

As in Guideline 05_12_Remote_controlled_client_side_log_collection.pdf, we can write a WLClientLogReceiver. But it didn't provide any detail on what to do.

1

There are 1 answers

20
Idan Adar On BEST ANSWER

When working with development server you can review all logs in the Analytics Console, accessible from the Worklight Console.

When working with a production server, you need to implement a WLClientLogeceiver. By "WLClientLogReceiver" it is meant to implement an adapter by that name.

The tutorial is meant to provide the basic premise and information on using client logging. WLClientLogReceiver is fruther explained in detail and with implementation examples in the user documentation topic Server preparation for uploaded log data.

If you read all of the documentation linked above by Idan I believe all of your questions will be answered.

Basically, when the Worklight server receives logs from the client it will send them to Operational Analytics AND it will send them to WLClientLogReceiver's log procedure. The implementation of this log procedure will determine the destination of the uploaded log content. In other words, this is how you can configure where your log data will be sent if you are not using IBM's Operational Analytics offering.