equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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 #ifndef __SCPDBDEBUG_H__ |
|
19 #define __SCPDBDEBUG_H__ |
|
20 #include <e32std.h> |
|
21 #include <f32file.h> |
|
22 #include <flogger.h> |
|
23 #include <e32svr.h> |
|
24 |
|
25 #if defined (_DEBUG) |
|
26 _LIT( KLogFile2, "SCPDB.log" ); |
|
27 _LIT( KLogDir2, "tarm" ); |
|
28 |
|
29 inline void FDBWrite (TRefByValue<const TDesC> aFmt,...) { |
|
30 VA_LIST list; |
|
31 VA_START(list, aFmt); |
|
32 RFileLogger :: WriteFormat(KLogDir2, KLogFile2, EFileLoggingModeAppend, TPtrC(aFmt), list); |
|
33 } |
|
34 |
|
35 #define _SCPDB_LOG(arg...) FDBWrite(arg); |
|
36 #else |
|
37 #define _SCPDB_LOG(arg...) |
|
38 #endif // _DEBUG |
|
39 #endif //__SCPDBDEBUG_H__ |
|
40 |