160 #define __DEBUG_LOGGING_OPTIONS (__DEBUG_LOG_ERRORS|__DEBUG_LOG_INFO) |
160 #define __DEBUG_LOGGING_OPTIONS (__DEBUG_LOG_ERRORS|__DEBUG_LOG_INFO) |
161 |
161 |
162 #endif // __DEBUG_LOGGING_OPTIONS |
162 #endif // __DEBUG_LOGGING_OPTIONS |
163 |
163 |
164 // Finally, allow the logging options to be overriden at the global level. |
164 // Finally, allow the logging options to be overriden at the global level. |
165 #include "globaldebugloggingoptions.h" |
165 #include "GlobalDebugLoggingOptions.h" |
166 |
166 |
167 #endif // DEBUG_USE_PROJECT_LOGGING_OPTIONS |
167 #endif // DEBUG_USE_PROJECT_LOGGING_OPTIONS |
168 |
168 |
169 // Helper macro to use an argument and prevent compiler warnings about unused |
169 // Helper macro to use an argument and prevent compiler warnings about unused |
170 // method and stack arguments. |
170 // method and stack arguments. |
171 #define DEBUG_USE_VAR(var) if ( &var ) {}; |
171 #define DEBUG_USE_VAR(var) if ( &var ) {}; |
172 |
172 |
173 // These are the basic logging macros - they are NOT intended to be called directly. |
173 // These are the basic logging macros - they are NOT intended to be called directly. |
174 // Instead use the logging MACROS defined in debuglogmacros.h |
174 // Instead use the logging MACROS defined in DebugLogMacros.h |
175 #define __INTERNAL_LOG_DECLARATION RDebugLog iLogger; |
175 #define __INTERNAL_LOG_DECLARATION RDebugLog iLogger; |
176 |
176 |
177 #define __INTERNAL_LOG_CLOSE_BETWEEN_WRITES \ |
177 #define __INTERNAL_LOG_CLOSE_BETWEEN_WRITES \ |
178 iLogger.SetCloseBetweenWrites( ETrue ); \ |
178 iLogger.SetCloseBetweenWrites( ETrue ); \ |
179 iLogger.Close(); |
179 iLogger.Close(); |