imservices/searchfeatureplugin/srcutils/searchlogutils.cpp
changeset 30 1fa9b890f29c
parent 0 e6b17d312c8b
equal deleted inserted replaced
29:7ae31d8de4bc 30:1fa9b890f29c
    25 _LIT(KImLogDir, "searchplugin");
    25 _LIT(KImLogDir, "searchplugin");
    26 _LIT(KImLogFile, "search.txt");
    26 _LIT(KImLogFile, "search.txt");
    27 
    27 
    28 void XSearchLogger::Log(TRefByValue<const TDesC> aFmt,...)
    28 void XSearchLogger::Log(TRefByValue<const TDesC> aFmt,...)
    29     {
    29     {
       
    30 #ifdef _DEBUG
    30     VA_LIST list;
    31     VA_LIST list;
    31     VA_START(list, aFmt);
    32     VA_START(list, aFmt);
    32     // Print to log file
    33     // Print to log file
    33     TBuf<KLogBufferLength> buf;
    34     TBuf<KLogBufferLength> buf;
    34     buf.FormatList(aFmt, list);
    35     buf.FormatList(aFmt, list);
    35     RFileLogger::Write(KImLogDir, KImLogFile, EFileLoggingModeAppend, buf);
    36     RFileLogger::Write(KImLogDir, KImLogFile, EFileLoggingModeAppend, buf);
       
    37 #endif
    36     }
    38     }
    37 
    39 
    38 //  End of File  
    40 //  End of File