#ifndef _CLOG #define _CLOG /** \defgroup phidlog Phidget Logging * Logging is provided mainly for debugging purposes. Enabling logging will output internal library * information that can be used to find bugs with the help of Phidgetd Inc. Alternatively, the user * can enable and write to the log for their own uses. * @{ */ typedef enum { PHIDGET_LOG_CRITICAL = 1, /**< Really important errors that can't be recovered. Usually followed by an abort() */ PHIDGET_LOG_ERROR, /**< Errors that are recovered from. */ PHIDGET_LOG_WARNING, /**< Warning's about weird things that aren't neccesarily wrong. */ PHIDGET_LOG_DEBUG, /**< Should only be used during development - only shows up in the debug library. */ PHIDGET_LOG_INFO, /**< Info about the going on's in the library. */ PHIDGET_LOG_VERBOSE /**< Everything, including very common messages. */ } CPhidgetLog_level; /** * Enables logging. * @param level The highest level of logging to output. All lower levels will also be output. * @param outputFile File to output log to. This should be a full pathname, not a relative pathname. Specify NULL to output to stdout. */ PHIDGET21_API int CCONV CPhidget_enableLogging(CPhidgetLog_level level, const char *outputFile); /** * Disables logging. */ PHIDGET21_API int CCONV CPhidget_disableLogging(); /** * Appends a message to the log. * @param level The level at which to log the message. * @param id An arbitrary identifier. * @param message The message (printf style). */ PHIDGET21_API int CCONV CPhidget_log(CPhidgetLog_level level, const char *id, const char *message, ...); #ifndef EXTERNALPROTO #define LOG_TO_STDERR 0x8000 #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #define LOG(level, ...) CPhidget_log(level, __FILE__ "(" TOSTRING(__LINE__) ")", __VA_ARGS__) #define LOG_STDERR(level, ...) CPhidget_log(LOG_TO_STDERR|level, __FILE__ "(" TOSTRING(__LINE__) ")", __VA_ARGS__) #endif /** @} */ #endif value='1303d05e3ffe121f0876d13c5359571248d731e4'/>
path: root/lib/grammar.h (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2012-01-26fix typoJonathan McCrohan1-1/+1
2012-01-26fix accidental description changesJonathan McCrohan1-2/+2
2012-01-26more fucking around to please lintianJonathan McCrohan1-5/+2
2012-01-25Linitan fixesJonathan McCrohan2-3/+2
2012-01-25Split out debug packagesJonathan McCrohan2-1/+6
2011-12-31Fix debian/rulesJonathan McCrohan1-1/+1
2011-12-31Remove shlibsJonathan McCrohan1-2/+0
2011-12-31Remove NMU from changelogJonathan McCrohan1-1/+0
2011-12-31Lintian FixesJonathan McCrohan1-2/+4
2011-12-31Remove Makefile patchJonathan McCrohan1-1/+0
2011-12-31Update MakefilesJonathan McCrohan10-248/+8222
2011-12-31Updated makefilesJonathan McCrohan1-0/+1