|
1 /** |
|
2 * Copyright (c) 2003-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file NetConLog.h |
|
22 @internalComponent |
|
23 */ |
|
24 |
|
25 #if !defined (__NETCONLOG_H__) |
|
26 #define __NETCONLOG_H__ |
|
27 |
|
28 #if defined (_DEBUG) |
|
29 |
|
30 #include <comms-infras/commsdebugutility.h> |
|
31 #define LOG(MSG) MSG |
|
32 |
|
33 #if defined (DETAILED_LOG) |
|
34 #define LOG_DETAILED(MSG) MSG |
|
35 #else |
|
36 #define LOG_DETAILED(MSG) |
|
37 #endif |
|
38 |
|
39 _LIT(KNetConLogFolder,"NetCon"); ///< KNetConLogFolder holds name of the Network Controller Log Folder |
|
40 _LIT(KNetConLogFile,"NetCon.txt"); ///< KNetConLogFile holds name of the Network Controller Log File |
|
41 _LIT(KEndOfLine,"\r\n"); ///< KEndOfLine holds the End Of Line format specifier. |
|
42 |
|
43 const TInt KNetConLogHexDumpWidth = 16; |
|
44 |
|
45 class NetConLog |
|
46 /** |
|
47 The class is used to write into the Network Controller Log. |
|
48 |
|
49 @internalComponent |
|
50 */ |
|
51 { |
|
52 |
|
53 public: |
|
54 static void Printf(TRefByValue<const TDesC> aFmt, ...); |
|
55 |
|
56 /* The next two functions are not used at present |
|
57 |
|
58 static void Write(const TDesC& aDes); |
|
59 static void HexDump(const TText* aHeader, const TText* aMargin, const TUint8* aPtr, TInt aLen, TInt aWidth = KNetConLogHexDumpWidth); |
|
60 |
|
61 */ |
|
62 |
|
63 }; |
|
64 |
|
65 #else |
|
66 #define LOG(MSG) |
|
67 #define LOG_DETAILED(MSG) |
|
68 #endif |
|
69 |
|
70 #endif // __NETCONLOG_H__ |
|
71 |