Enumerations | |
enum | CPhidgetLog_level { PHIDGET_LOG_CRITICAL = 1, PHIDGET_LOG_ERROR, PHIDGET_LOG_WARNING, PHIDGET_LOG_DEBUG, PHIDGET_LOG_INFO, PHIDGET_LOG_VERBOSE } |
Functions | |
int | CPhidget_enableLogging (CPhidgetLog_level level, const char *outputFile) |
int | CPhidget_disableLogging () |
int | CPhidget_log (CPhidgetLog_level level, const char *id, const char *message,...) |
enum CPhidgetLog_level |
int CPhidget_enableLogging | ( | CPhidgetLog_level | level, | |
const char * | outputFile | |||
) |
Enables logging.
level | The highest level of logging to output. All lower levels will also be output. | |
outputFile | File to output log to. This should be a full pathname, not a relative pathname. Specify NULL to output to stdout. |
int CPhidget_disableLogging | ( | ) |
Disables logging.
int CPhidget_log | ( | CPhidgetLog_level | level, | |
const char * | id, | |||
const char * | message, | |||
... | ||||
) |
Appends a message to the log.
level | The level at which to log the message. | |
id | An arbitrary identifier. | |
message | The message (printf style). |