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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
Goldi
Posts: 11
Registered: ‎09-07-2009

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

Please use plain text.
Developer
Posts: 432
Registered: ‎02-23-2009

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
Please use plain text.
New Developer
Goldi
Posts: 11
Registered: ‎09-07-2009

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

Please use plain text.
Developer
Posts: 432
Registered: ‎02-23-2009

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
Please use plain text.
New Developer
Goldi
Posts: 11
Registered: ‎09-07-2009

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

Please use plain text.