Languages

Menu
Sites
Language
How to output messages to Console/Log in Tizen IDE (C Program)?

Hi,

I'm working on a Tizen app that's written in C.

Part of how I like to debug is to print messages to the console so I can see if the app's program flow is going as I expect.

I was trying to output messages using:

dlog_vprint(pri, LOG_TAG, format, vl);

However, no messages appear in either the Log or Console tabs at the bottom of the Tizen IDE.

Should I be using another command? Ideally, I'd like to just be able to do something like printf()s to the Console tab, if that's possible.

Any suggestions?

Thanks!

Tim

Responses

4 Replies
le nam

Hello,

Sometime, I got this issue too.

May be, your "pri" was not checked on log tab.

Or your fillter didnot match.

 

 

Nafisul Islam Kiron

Use

dlog_print(DLOG_ERROR, LOG_TAG, "Your error message with return code %d", ret);

For different type of log you can use DLOG_ERROR, DLOG_DEBUG, DLOG_DEFAULT, DLOG_INFO etc.

 

To view LOGS go to:

Tizen IDE > Window > Show View > Log

 

In Log view you can turn on/off log types, you will see that there are [V], [D] (debug), [I] (info), [W] (warning), [E] (error) and [F] (fatal) icons.

You can turn those of/off to show/hide those type of logs. Do not forget to check if these are on or off, if not on no log will be shown.

 

Hope that helps.

Tim Howie

Thanks, Nafisul. 

I've attempted the dlog_print() as in your message, but I still do not see them show up in either the console or log windows - not sure why. I have everything except Verbose and Debug checked.

Any thoughts?

Nafisul Islam Kiron

Please make sure you are running in DEBUG mode.

Go to:

IDE >> Run >> Debug (F11)