wmdrm/camese/inc/cameselog.inl
branchRCL_3
changeset 18 8a03a285ab14
parent 0 95b198f216e5
equal deleted inserted replaced
17:e16d72588c28 18:8a03a285ab14
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include <E32SVR.H>
    20 #include <e32svr.h>
    21 
    21 
    22 // ----------------------------------------------------------------------------
    22 // ----------------------------------------------------------------------------
    23 // Write a string to the log - 16 bit version
    23 // Write a string to the log - 16 bit version
    24 // ----------------------------------------------------------------------------
    24 // ----------------------------------------------------------------------------
    25 //
    25 //
    33         msgPtr.Set(aFmt.Mid(offSet));
    33         msgPtr.Set(aFmt.Mid(offSet));
    34         RFileLogger::WriteFormat(KCameseLogFolder(), KCameseLogFile(),
    34         RFileLogger::WriteFormat(KCameseLogFolder(), KCameseLogFile(),
    35             EFileLoggingModeAppend, msgPtr.Left(100));
    35             EFileLoggingModeAppend, msgPtr.Left(100));
    36         offSet += 100;  //set to 100
    36         offSet += 100;  //set to 100
    37         };
    37         };
    38     RDebug::Print(aFmt);        
    38     RDebug::Print(aFmt);
    39     }
    39     }
    40 
    40 
    41 // ----------------------------------------------------------------------------
    41 // ----------------------------------------------------------------------------
    42 // Write a multiple argument list to the log - 16 bit version
    42 // Write a multiple argument list to the log - 16 bit version
    43 // ----------------------------------------------------------------------------
    43 // ----------------------------------------------------------------------------
    69         msgPtr.Set(aFmt.Mid(offSet));
    69         msgPtr.Set(aFmt.Mid(offSet));
    70         RFileLogger::WriteFormat(KCameseLogFolder(), KCameseLogFile(),
    70         RFileLogger::WriteFormat(KCameseLogFolder(), KCameseLogFile(),
    71             EFileLoggingModeAppend, msgPtr.Left(100));
    71             EFileLoggingModeAppend, msgPtr.Left(100));
    72         offSet += 100;  //set to 100
    72         offSet += 100;  //set to 100
    73         };
    73         };
    74     
    74 
    75     HBufC* buf16 = HBufC::NewLC(aFmt.Length());
    75     HBufC* buf16 = HBufC::NewLC(aFmt.Length());
    76     buf16->Des().Copy(aFmt);
    76     buf16->Des().Copy(aFmt);
    77     RDebug::Print(*buf16);
    77     RDebug::Print(*buf16);
    78     CleanupStack::PopAndDestroy(buf16);    
    78     CleanupStack::PopAndDestroy(buf16);
    79     }
    79     }
    80 
    80 
    81 // ----------------------------------------------------------------------------
    81 // ----------------------------------------------------------------------------
    82 // Write a multiple argument list to the log - 8 bit version
    82 // Write a multiple argument list to the log - 8 bit version
    83 // ----------------------------------------------------------------------------
    83 // ----------------------------------------------------------------------------