equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file PREDLOG.CPP |
|
18 */ |
|
19 |
|
20 #ifdef _DEBUG |
|
21 |
|
22 #include <comms-infras/commsdebugutility.h> |
|
23 #include "PREDLOG.H" |
|
24 |
|
25 /** |
|
26 KPredLogFolder holds the Name of the PredLog Folder. |
|
27 |
|
28 @internalComponent |
|
29 */ |
|
30 _LIT(KPredLogFolder,"PppComp"); |
|
31 |
|
32 /** |
|
33 KPredLogFile holds the name of the PredLog File |
|
34 |
|
35 @internalComponent |
|
36 */ |
|
37 _LIT(KPredLogFile,"Predictor.txt"); |
|
38 |
|
39 |
|
40 void PredLog::Write(const TDesC& aDes) |
|
41 /** |
|
42 Appending the descriptor aDes into the predLog file of predLog folder. |
|
43 */ |
|
44 { |
|
45 |
|
46 RFileLogger::Write(KPredLogFolder(),KPredLogFile(),EFileLoggingModeAppend,aDes); |
|
47 } |
|
48 |
|
49 void PredLog::Printf(TRefByValue<const TDesC> aFmt, ...) |
|
50 { |
|
51 |
|
52 VA_LIST list; |
|
53 VA_START(list,aFmt); |
|
54 RFileLogger::WriteFormat(KPredLogFolder(),KPredLogFile(),EFileLoggingModeAppend,aFmt,list); |
|
55 } |
|
56 |
|
57 #endif |