cbs/CbsServer/ServerInc/CbsLogger.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
    13 *
    13 *
    14 * Description:  Logger headerfile for CbsServer
    14 * Description:  Logger headerfile for CbsServer
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
       
    19 
       
    20 #ifndef CBSLOGGER_H
    18 #ifndef CBSLOGGER_H
    21 #define CBSLOGGER_H
    19 #define CBSLOGGER_H
    22 
    20 
    23 /* 
    21 /* 
    24 -----------------------------------------------------------------------------
    22 -----------------------------------------------------------------------------
    28 #ifndef _DEBUG
    26 #ifndef _DEBUG
    29     // UREL BUILD:
    27     // UREL BUILD:
    30     #define CBS_LOGGING_METHOD  0   // No logging in UREL builds
    28     #define CBS_LOGGING_METHOD  0   // No logging in UREL builds
    31 #else
    29 #else
    32     // UDEB BUILD:
    30     // UDEB BUILD:
    33     #define CBS_LOGGING_METHOD  1   // 0 = No logging, 
    31     #define CBS_LOGGING_METHOD  2   // 0 = No logging, 
    34                                         // 1 = Flogger, 
    32                                     // 1 = Flogger, 
    35                                         // 2 = RDebug
    33                                     // 2 = RDebug
    36 #endif //_DEBUG
    34 #endif //_DEBUG
    37 
       
    38 
    35 
    39 #if CBS_LOGGING_METHOD > 0
    36 #if CBS_LOGGING_METHOD > 0
    40     #define CBS_LOGGING_ENABLED     // This is for backward compatibility
    37     #define CBS_LOGGING_ENABLED     // This is for backward compatibility
    41 #endif //CBS_LOGGING_METHOD 
    38 #endif //CBS_LOGGING_METHOD 
    42 
    39 
    56 
    53 
    57     #include <e32svr.h>
    54     #include <e32svr.h>
    58 
    55 
    59 #endif //CBS_LOGGING_METHOD
    56 #endif //CBS_LOGGING_METHOD
    60 
    57 
    61 
       
    62 /*
    58 /*
    63 -----------------------------------------------------------------------------
    59 -----------------------------------------------------------------------------
    64     LOGGING MACROs
    60     LOGGING MACROs
    65 
    61 
    66     USE THESE MACROS IN YOUR CODE !
    62     USE THESE MACROS IN YOUR CODE !
    67 -----------------------------------------------------------------------------
    63 -----------------------------------------------------------------------------
    68 */
    64 */
    69 
       
    70 
    65 
    71 #if CBS_LOGGING_METHOD == 1      // Flogger
    66 #if CBS_LOGGING_METHOD == 1      // Flogger
    72 
    67 
    73 #define CBSLOGTEXT(AAA) /*lint -save -e960 */              { RFileLogger::Write(KCbsLogFolder(),KCbsLogFile(),EFileLoggingModeAppend,AAA); } /*lint -restore */
    68 #define CBSLOGTEXT(AAA) /*lint -save -e960 */              { RFileLogger::Write(KCbsLogFolder(),KCbsLogFile(),EFileLoggingModeAppend,AAA); } /*lint -restore */
    74 #define CBSLOGSTRING(AAA) /*lint -save -e960 */           { _LIT(tempLogDes,AAA); RFileLogger::Write(KCbsLogFolder(),KCbsLogFile(),EFileLoggingModeAppend,tempLogDes()); } /*lint -restore */
    69 #define CBSLOGSTRING(AAA) /*lint -save -e960 */           { _LIT(tempLogDes,AAA); RFileLogger::Write(KCbsLogFolder(),KCbsLogFile(),EFileLoggingModeAppend,tempLogDes()); } /*lint -restore */