Problem with CPhidget_log

C, C++, and Visual C++
gdonaire
Fresh meat
Posts: 1
Joined: Fri Feb 06, 2015 9:53 am
Contact:

Problem with CPhidget_log

Postby gdonaire » Mon Feb 08, 2016 8:48 am

Hi,

I have problems with the use of CPhidget_log function, when the log level is INFO I have no problem:

Code: Select all

CPhidget_enableLogging(PHIDGET_LOG_INFO, LOG_FILE);
CPhidget_log(PHIDGET_LOG_INFO, "STATION", "State: WAIT_AUV\n");
CPhidget_disableLogging();


But when I change the level to DEBUG, the log file is empty

Code: Select all

CPhidget_enableLogging(PHIDGET_LOG_DEBUG, LOG_FILE);
CPhidget_log(PHIDGET_LOG_DEBUG, "STATION", "State: WAIT_AUV\n");
CPhidget_disableLogging();


Any suggestion, why this error?

User avatar
Patrick
Lead Developer
Posts: 3027
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Problem with CPhidget_log

Postby Patrick » Mon Feb 08, 2016 9:37 am

DEBUG level messages are only printed in the debug version of the library.

-Patrick


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 1 guest