equal
  deleted
  inserted
  replaced
  
    
    
|         |      1 /* | 
|         |      2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).  | 
|         |      3 * All rights reserved. | 
|         |      4 * This component and the accompanying materials are made available | 
|         |      5 * under the terms of "Eclipse Public License v1.0" | 
|         |      6 * which accompanies this distribution, and is available | 
|         |      7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". | 
|         |      8 * | 
|         |      9 * Initial Contributors: | 
|         |     10 * Nokia Corporation - initial contribution. | 
|         |     11 * | 
|         |     12 * Contributors: | 
|         |     13 * | 
|         |     14 * Description: Utils for im launcher log. | 
|         |     15 * | 
|         |     16 */ | 
|         |     17  | 
|         |     18  | 
|         |     19  | 
|         |     20 // INCLUDE FILES | 
|         |     21 #include "logutils.h" | 
|         |     22  | 
|         |     23 // CONSTANTS | 
|         |     24 const TInt KLogBufferLength = 256; | 
|         |     25 _LIT( KLogDir, "impsc" ); | 
|         |     26 _LIT( KLogFile, "launcher.txt" ); | 
|         |     27  | 
|         |     28 void CImApiLogger::Log( TRefByValue<const TDesC> aFmt, ... ) | 
|         |     29     { | 
|         |     30     VA_LIST list; | 
|         |     31     VA_START( list, aFmt ); | 
|         |     32  | 
|         |     33     // Print to log file | 
|         |     34     TBuf<KLogBufferLength> buf; | 
|         |     35     buf.FormatList( aFmt, list ); | 
|         |     36  | 
|         |     37 //#ifdef _USE_FLOGGER | 
|         |     38     // Write to log file | 
|         |     39     RFileLogger::Write( KLogDir, KLogFile, EFileLoggingModeAppend, buf ); | 
|         |     40 //#else | 
|         |     41 //#endif | 
|         |     42  | 
|         |     43     } | 
|         |     44  | 
|         |     45 //  End of File |