imagehandlingutilities/thumbnailmanager/inc/thumbnaillog.h
branchRCL_3
changeset 9 2eb74cf6572e
parent 0 2014ca87e772
equal deleted inserted replaced
5:82749d516180 9:2eb74cf6572e
    22 #include <e32std.h>
    22 #include <e32std.h>
    23 #include <e32svr.h>
    23 #include <e32svr.h>
    24 
    24 
    25 //log to file instead of RDebug
    25 //log to file instead of RDebug
    26 //#define LOG_TO_FILE
    26 //#define LOG_TO_FILE
       
    27 
       
    28 //#define _DEBUG
    27 
    29 
    28 #ifdef _DEBUG
    30 #ifdef _DEBUG
    29 #ifdef LOG_TO_FILE
    31 #ifdef LOG_TO_FILE
    30 //
    32 //
    31 // Log to file
    33 // Log to file
    74 KThumbnailLogDir, \
    76 KThumbnailLogDir, \
    75 KThumbnailLogFile, \
    77 KThumbnailLogFile, \
    76 EFileLoggingModeAppend, \
    78 EFileLoggingModeAppend, \
    77 _L( s ), a, b, c, d, e );
    79 _L( s ), a, b, c, d, e );
    78 
    80 
       
    81 #define TN_DEBUG7( s, a, b, c, d, e, f ) \
       
    82 RFileLogger::WriteFormat( \
       
    83 KThumbnailLogDir, \
       
    84 KThumbnailLogFile, \
       
    85 EFileLoggingModeAppend, \
       
    86 _L( s ), a, b, c, d, e, f );
       
    87 
    79 #else // LOG_TO_FILE
    88 #else // LOG_TO_FILE
    80 //
    89 //
    81 // Log to RDebug
    90 // Log to RDebug
    82 //
    91 //
    83 #define TN_DEBUG1( s )                 RDebug::Print( _L( s ) )
    92 #define TN_DEBUG1( s )                 RDebug::Print( _L( s ) )
    84 #define TN_DEBUG2( s, a )              RDebug::Print( _L( s ), a )
    93 #define TN_DEBUG2( s, a )              RDebug::Print( _L( s ), a )
    85 #define TN_DEBUG3( s, a, b )           RDebug::Print( _L( s ), a, b )
    94 #define TN_DEBUG3( s, a, b )           RDebug::Print( _L( s ), a, b )
    86 #define TN_DEBUG4( s, a, b, c )        RDebug::Print( _L( s ), a, b, c )
    95 #define TN_DEBUG4( s, a, b, c )        RDebug::Print( _L( s ), a, b, c )
    87 #define TN_DEBUG5( s, a, b, c, d )     RDebug::Print( _L( s ), a, b, c, d )
    96 #define TN_DEBUG5( s, a, b, c, d )     RDebug::Print( _L( s ), a, b, c, d )
    88 #define TN_DEBUG6( s, a, b, c, d, e )  RDebug::Print( _L( s ), a, b, c, d, e )
    97 #define TN_DEBUG6( s, a, b, c, d, e )  RDebug::Print( _L( s ), a, b, c, d, e )
       
    98 #define TN_DEBUG7( s, a, b, c, d, e, f )  RDebug::Print( _L( s ), a, b, c, d, e, f )
    89 
    99 
    90 #endif // LOG_TO_FILE
   100 #endif // LOG_TO_FILE
    91 
   101 
    92 #else // _DEBUG
   102 #else // _DEBUG
    93 //
   103 //
    97 #define TN_DEBUG2( s, a )
   107 #define TN_DEBUG2( s, a )
    98 #define TN_DEBUG3( s, a, b )
   108 #define TN_DEBUG3( s, a, b )
    99 #define TN_DEBUG4( s, a, b, c )
   109 #define TN_DEBUG4( s, a, b, c )
   100 #define TN_DEBUG5( s, a, b, c, d )
   110 #define TN_DEBUG5( s, a, b, c, d )
   101 #define TN_DEBUG6( s, a, b, c, d, e )
   111 #define TN_DEBUG6( s, a, b, c, d, e )
   102 
   112 #define TN_DEBUG7( s, a, b, c, d, e, f )
   103 #endif // _DEBUG
   113 #endif // _DEBUG
   104 
   114 
   105 #endif // THUMBNAILLOG_H
   115 #endif // THUMBNAILLOG_H