emailservices/emailstore/message_store/debuglog/inc/DebugLogConst.h
branchRCL_3
changeset 24 d189ee25cf9d
parent 10 f5907b1a1053
child 25 3533d4323edc
equal deleted inserted replaced
23:dcf0eedfc1a3 24:d189ee25cf9d
    23 // INCLUDES
    23 // INCLUDES
    24 // ========
    24 // ========
    25 
    25 
    26 #include <e32std.h>
    26 #include <e32std.h>
    27 #include <e32def.h>
    27 #include <e32def.h>
    28 #include "debuglog.h"
    28 #include "DebugLog.h"
    29 
    29 
    30 // ========
    30 // ========
    31 // LITERALS
    31 // LITERALS
    32 // ========
    32 // ========
    33 
    33 
   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();
   618 
   618 
   619 #define __INTERNAL_LOG_LEAKED_OBJECTS RDebugLog::LogLeakedObjects();
   619 #define __INTERNAL_LOG_LEAKED_OBJECTS RDebugLog::LogLeakedObjects();
   620 
   620 
   621 #endif // _DEBUG_LOG_CONST_H_
   621 #endif // _DEBUG_LOG_CONST_H_
   622 
   622 
   623 // END FILE debuglogconst.h
   623 // END FILE DebugLogConst.h