|
1 // Copyright (c) 2005-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 |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef __ES_FLOG_H__ |
|
22 #define __ES_FLOG_H__ |
|
23 |
|
24 |
|
25 #include <comms-infras/commsdebugutility.h> |
|
26 |
|
27 #if defined (__FLOG_ACTIVE) |
|
28 |
|
29 #define LOG(a) a |
|
30 |
|
31 #if defined(DETAILED_LOG) |
|
32 |
|
33 #define LOG_DETAILED(a) a |
|
34 #else |
|
35 #define LOG_DETAILED(a) |
|
36 #endif |
|
37 |
|
38 //_LIT(KLogDir, "esock"); //< KLogDir holds name of Log directory |
|
39 //_LIT(KLogFile, "esock.txt"); //< KLogFile holds the name of Log file. |
|
40 |
|
41 class ESockLogExternal |
|
42 /** |
|
43 @internalComponent |
|
44 */ |
|
45 { |
|
46 public: |
|
47 static void Printf(const TDesC8& aComponent, const TDesC8& aSubTag, TRefByValue<const TDesC8> aFmt, VA_LIST& aList); |
|
48 }; |
|
49 |
|
50 class ESockLog : public ESockLogExternal |
|
51 /** |
|
52 @internalComponent |
|
53 */ |
|
54 { |
|
55 public: |
|
56 static void Printf(TRefByValue<const TDesC8> aFmt, ...); |
|
57 static void Printf(TRefByValue<const TDesC> aFmt, ...); |
|
58 }; |
|
59 |
|
60 #else |
|
61 |
|
62 #define LOG(a) |
|
63 #define LOG_DETAILED(a) |
|
64 |
|
65 #endif // __FLOG_ACTIVE |
|
66 |
|
67 #endif // __ES_FLOG_H__ |
|
68 |