omadrm/drmengine/dcfrepository/server/inc/drmlog.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    20 #ifndef DRMLOG_H
    20 #ifndef DRMLOG_H
    21 #define DRMLOG_H
    21 #define DRMLOG_H
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #if (defined _DEBUG || defined _LOGGING)
    24 #if (defined _DEBUG || defined _LOGGING)
    25 #include <E32SVR.H>
    25 #include <e32svr.h>
    26 #include <flogger.h>
    26 #include <flogger.h>
    27 
    27 
    28 // CONSTANTS
    28 // CONSTANTS
    29 // MACROS
    29 // MACROS
    30 
    30 
    33 #endif
    33 #endif
    34 
    34 
    35 #define DRMLOG( a ) \
    35 #define DRMLOG( a ) \
    36     RFileLogger::Write(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a); \
    36     RFileLogger::Write(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a); \
    37     RDebug::Print( a );
    37     RDebug::Print( a );
    38     
    38 
    39 #define DRMLOG2( a, b ) \
    39 #define DRMLOG2( a, b ) \
    40     RFileLogger::WriteFormat(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a, b); \
    40     RFileLogger::WriteFormat(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a, b); \
    41     RDebug::Print( a, b );
    41     RDebug::Print( a, b );
    42      
    42 
    43 #define DRMLOGHEX( a ) \
    43 #define DRMLOGHEX( a ) \
    44     RFileLogger::HexDump(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, _S(""), _S(""), (a).Ptr(), (a).Size());
    44     RFileLogger::HexDump(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, _S(""), _S(""), (a).Ptr(), (a).Size());
    45 
    45 
    46 #else
    46 #else
    47 
    47 
    48 #define DRMLOG( a ) 
    48 #define DRMLOG( a )
    49 #define DRMLOG2( a, b ) 
    49 #define DRMLOG2( a, b )
    50 #define DRMLOGHEX( a )
    50 #define DRMLOGHEX( a )
    51 
    51 
    52 #endif // _DEBUG
    52 #endif // _DEBUG
    53 
    53 
    54 // DATA TYPES
    54 // DATA TYPES
    55 // FUNCTION PROTOTYPES
    55 // FUNCTION PROTOTYPES
    56 // FORWARD DECLARATIONS
    56 // FORWARD DECLARATIONS
    57 // CLASS DECLARATION
    57 // CLASS DECLARATION
    58 
    58 
    59 #endif      // DRMLOG_H   
    59 #endif      // DRMLOG_H
    60             
    60 
    61 // End of File
    61 // End of File
    62 
    62 
    63 
    63