omadrm/drmengine/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 
    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 
       
    43 #define DRMLOG6( a, b, c, d, e, f ) \
       
    44     RFileLogger::WriteFormat(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a, b, c, d, e, f); \
       
    45     RDebug::Print( a, b, c, d, e, f );
       
    46 
       
    47 #define DRMLOG7( a, b, c, d, e, f, g ) \
       
    48     RFileLogger::WriteFormat(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, a, b, c, d, e, f, g); \
       
    49     RDebug::Print( a, b, c, d, e, f, g );
    42      
    50      
    43 #define DRMLOGHEX( a ) \
    51 #define DRMLOGHEX( a ) \
    44     RFileLogger::HexDump(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, _S(""), _S(""), (a).Ptr(), (a).Size());
    52     RFileLogger::HexDump(_L("drm"), DRMFLOGFILE, EFileLoggingModeAppend, _S(""), _S(""), (a).Ptr(), (a).Size());
    45 
    53 
    46 #else
    54 #else
    47 
    55 
    48 #define DRMLOG( a ) 
    56 #define DRMLOG( a ) 
    49 #define DRMLOG2( a, b ) 
    57 #define DRMLOG2( a, b ) 
       
    58 #define DRMLOG6( a, b, c, d, e, f )
       
    59 #define DRMLOG7( a, b, c, d, e, f, g )
    50 #define DRMLOGHEX( a )
    60 #define DRMLOGHEX( a )
    51 
    61 
    52 #endif // _DEBUG
    62 #endif // _DEBUG
    53 
    63 
    54 // DATA TYPES
    64 // DATA TYPES