![]() |
Deskflow 1.26.0.418
Keyboard and mouse sharing utility
|


Go to the source code of this file.
Classes | |
| class | Log |
| Logging facility. More... | |
Macros | |
| #define | CLOG (Log::getInstance()) |
| #define | BYE "\nTry `%s --help' for more information." |
| #define | LOG(_a1) |
| #define | LOGC(_a1, _a2) |
| #define | CLOG_TRACE __FILE__, __LINE__, |
| #define | CLOG_TAG_PRINT "%z\057" |
| #define | CLOG_TAG_CRIT "%z\060" |
| #define | CLOG_TAG_ERR "%z\061" |
| #define | CLOG_TAG_WARN "%z\062" |
| #define | CLOG_TAG_INFO "%z\063" |
| #define | CLOG_TAG_DEBUG "%z\064" |
| #define | CLOG_TAG_VERBOSE "%z\065" |
| #define | CLOG_PRINT CLOG_TRACE CLOG_TAG_PRINT |
| #define | CLOG_CRIT CLOG_TRACE CLOG_TAG_CRIT |
| #define | CLOG_ERR CLOG_TRACE CLOG_TAG_ERR |
| #define | CLOG_WARN CLOG_TRACE CLOG_TAG_WARN |
| #define | CLOG_INFO CLOG_TRACE CLOG_TAG_INFO |
| #define | CLOG_DEBUG CLOG_TRACE CLOG_TAG_DEBUG |
| #define | CLOG_VERBOSE CLOG_TRACE CLOG_TAG_VERBOSE |
| #define | LOG_PRINT(...) |
| #define | LOG_CRIT(...) |
| #define | LOG_ERR(...) |
| #define | LOG_WARN(...) |
| #define | LOG_INFO(...) |
| #define | LOG_DEBUG(...) |
| #define | LOG_VERBOSE(...) |
| #define BYE "\nTry `%s --help' for more information." |
| #define CLOG (Log::getInstance()) |
| #define CLOG_CRIT CLOG_TRACE CLOG_TAG_CRIT |
| #define CLOG_DEBUG CLOG_TRACE CLOG_TAG_DEBUG |
| #define CLOG_ERR CLOG_TRACE CLOG_TAG_ERR |
| #define CLOG_INFO CLOG_TRACE CLOG_TAG_INFO |
| #define CLOG_PRINT CLOG_TRACE CLOG_TAG_PRINT |
| #define CLOG_TAG_CRIT "%z\060" |
| #define CLOG_TAG_DEBUG "%z\064" |
| #define CLOG_TAG_ERR "%z\061" |
| #define CLOG_TAG_INFO "%z\063" |
| #define CLOG_TAG_PRINT "%z\057" |
| #define CLOG_TAG_VERBOSE "%z\065" |
| #define CLOG_TAG_WARN "%z\062" |
| #define CLOG_TRACE __FILE__, __LINE__, |
| #define CLOG_VERBOSE CLOG_TRACE CLOG_TAG_VERBOSE |
| #define CLOG_WARN CLOG_TRACE CLOG_TAG_WARN |
| #define LOG | ( | _a1 | ) |
Write to the log. Because macros cannot accept variable arguments, this should be invoked like so:
In particular, notice the double open and close parentheses. Also note that there is no comma after the CLOG_XXX. The XXX should be replaced by one of enumerants in Log::LogLevel without the leading k. For example, CLOG_INFO. The special CLOG_PRINT level will not be filtered and is never prefixed by the filename and line number.
If NOLOGGING is defined during the build then this macro expands to nothing. If NDEBUG is defined during the build then it expands to a call to Log::print. Otherwise it expands to a call to Log::print, which includes the filename and line number.
| #define LOG_CRIT | ( | ... | ) |
| #define LOG_DEBUG | ( | ... | ) |
| #define LOG_ERR | ( | ... | ) |
| #define LOG_INFO | ( | ... | ) |
| #define LOG_PRINT | ( | ... | ) |
| #define LOG_VERBOSE | ( | ... | ) |
| #define LOG_WARN | ( | ... | ) |
| #define LOGC | ( | _a1, | |
| _a2 ) |
Write to the log if and only if expr is true. Because macros cannot accept variable arguments, this should be invoked like so:
In particular, notice the parentheses around everything after the boolean expression. Also note that there is no comma after the CLOG_XXX. The XXX should be replaced by one of enumerants in Log::LogLevel without the leading k. For example, CLOG_INFO. The special CLOG_PRINT level will not be filtered and is never prefixed by the filename and line number.
If NOLOGGING is defined during the build then this macro expands to nothing. If NDEBUG is not defined during the build then it expands to a call to Log::print that prints the filename and line number, otherwise it expands to a call that doesn't.