/ * Prints debug message if debug is enabled * * \param[in] filename the source file that originated the debug message * \param[in] line_num the line number from the file that originated the debug message * \param[in] func_name function name of the calling function * \param[in] msg message to print, can contain sprintf formats * \param[in] ... Optional list
| 128 | * |
| 129 | ***********************************************************************/ |
| 130 | void Logger::DebugPrint(const char *filename, int line_num, const char *func_name, const char *msg, ...) |
| 131 | { |
| 132 | va_list args; // varialbe args |
| 133 | |
| 134 | // If debug isn't enabled, we do nothing. |
| 135 | if (!debugEnabled) |
| 136 | return; |
| 137 | |
| 138 | // Begin the args |
| 139 | va_start (args, msg); |
| 140 | |
| 141 | printV("DEBUG", debugFile, filename, line_num, func_name, msg, args); |
| 142 | |
| 143 | // Free/end the args |
| 144 | va_end(args); |
| 145 | } |
| 146 | |
| 147 | void Logger::Print(const char *sev, const char *func_name, const char *msg, ...) |
| 148 | { |
nothing calls this directly
no outgoing calls
no test coverage detected