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

Native Development

Reply
Developer
ashish12169
Posts: 214
Registered: ‎03-18-2012
My Device: 8520

how to target new project on target navigator?

Hi,

 

to print the log i use the target navigator and then in the terminal i use slog2info command to see the log ,but it always print the log of previous project  that i  run ..how i can swtich the target navigator to new target(so that it print the log of new device)..

 

 

 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: how to target new project on target navigator?

the target navigator shows the device, not the app.
slog2info may show the old logs as well, but should show the new ones also. clear the console to get only the new ones maybe.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10

Re: how to target new project on target navigator?

You can use the switch w option which only prints new information going into the logs..

 

slog2info -w

 

More information here on slog2info stuff...

https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.neutrino.utilities/topic/s/slog2i...

Developer
ashish12169
Posts: 214
Registered: ‎03-18-2012
My Device: 8520

Re: how to target new project on target navigator?

Hi,

how can we filter only our application logs info ?
slog2info -w shows lot of text and it makes difficult to read our application log...is there any way to filter our application logs only?
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10

Re: how to target new project on target navigator?

You can add an extra word such as Debug to parse your application specific logs.

 

Example:

 

qDebug() << "Debug: " << some.variable << " " << another.variable << "\n";

 

And use this for the actual parsing:

 

slog2info -w | grep Debug

 The | symbol is the vertical line on your keyboard..

Developer
ashish12169
Posts: 214
Registered: ‎03-18-2012
My Device: 8520

Re: how to target new project on target navigator?

Hi,

with my application logs info , i also get the system logs info .that makes difficult to me to understand the application logs..any command that just show only application logs.

e.g
default 9000 Debug: ......setFilter
May 28 04:01:41.126 com.example.bb10samples.pim.addressbook.testDev_addressbookf2ac.17100922..0
default 9000 Debug: 9222 9222
May 28 04:01:41.327 com.example.bb10samples.pim.addressbook.testDev_addressbookf2ac.17100922..0
default 9000 Debug: ......setFilter
May 28 04:01:41.346 com.example.bb10samples.pim.addressbook.testDev_addressbookf2ac.17100922..0
default 9000 Debug: 9222 9222
May 28 04:04:55.925 com.example.bb10samples.pim.addressbook.testDev_addressbookf2ac.17100922..0
default 9000 Debug: ......setFilter
May 28 04:04:55.974 com.example.bb10samples.pim.addressbook.testDev_addressbookf2ac.17100922..0
default 9000 Debug: 9222 9222
May 28 04:04:56.095 com.example.bb10samples.pim.addressbook.testDev_addressbookf2ac.17100922..0
default 9000 Debug: ......setFilter
May 28 04:04:56.154 com.example.bb10samples.pim.addressbook.testDev_addressbookf2ac.17100922..0
default 9000 Debug: 9222 9222