Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 11
Registered: ‎09-07-2009
My Device: Not Specified

Continuously receiving eventlog

Is there a method to continuously receive the eventlog from the device? (like "tail -f" in Linux?)

javaLoader can bring it up to a point, but in order to get new messages I have to download the entire log periodically.

Alternativly, is it possible to get the log using JDWP (as a stand alone applcation)?

 

My goal is have automatic unit tests. The unit test would write the results to the log, and I am looking for a component on the PC that would be integrated into the build serve and receive the results.

Thanks

Developer
Posts: 432
Registered: ‎02-23-2009
My Device: Not Specified

Re: Continuously receiving eventlog

You can write all your logs in a file and sync that file on desktop client

 


Press the kudos button to thank the user who helped you.

If your problem was get solved then please mark the thread as "Accepted solution".

 

Deepesh Gupta
New Developer
Posts: 11
Registered: ‎09-07-2009
My Device: Not Specified

Re: Continuously receiving eventlog

Your suggestion has the same drawbacks as polling the event log - I would have to either wait a long time before loading the file, or have load it periodically until the message appears.

Is there a method to get the lines "as they are written"?

Thanks

Developer
Posts: 432
Registered: ‎02-23-2009
My Device: Not Specified

Re: Continuously receiving eventlog

Sync the file on every update in file

 

 

 


Press the kudos button to thank the user who helped you.

If your problem was get solved then please mark the thread as "Accepted solution".

 

 

Deepesh Gupta
Highlighted
New Developer
Posts: 11
Registered: ‎09-07-2009
My Device: Not Specified

Re: Continuously receiving eventlog

I am new to developing on BB, so I appologize in advance if my question is trivial.

How do I sync the file on every update, and where would it be kept on the PC?

 

Thanks