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 #ifndef CPLOGGER_H |
|
18 #define CPLOGGER_H |
|
19 |
|
20 |
|
21 /* |
|
22 Windows: C:/ControlPanel/debug/bin/controlpanellog.conf |
|
23 Symbian: C:/data/.config/controlpanellog.conf |
|
24 |
|
25 Format: |
|
26 |
|
27 [ControlPanel] |
|
28 logdatetime = 1 |
|
29 logloggername = 1 |
|
30 output = debugoutput fileoutput |
|
31 fileoutput/logfile = C:/data/logs/controlpanel.log |
|
32 fileoutput/truncate = 0 |
|
33 */ |
|
34 |
|
35 #include <QLatin1String> |
|
36 #include <logger.h> |
|
37 |
|
38 #define CPFW_LOGGER_NAME QLatin1String("CpFramework") |
|
39 |
|
40 #if defined (Q_OS_SYMBIAN) |
|
41 #define CP_LOGGER_CONFIG_PATH QLatin1String("C:/data/.config/controlpanellog.conf") |
|
42 #elif defined (Q_WS_WIN) |
|
43 #ifdef _DEBUG |
|
44 #define CP_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/debug/bin/controlpanellog.conf") |
|
45 #else |
|
46 #define CP_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/release/bin/controlpanellog.conf") |
|
47 #endif |
|
48 #endif |
|
49 |
|
50 #define CPFW_LOG(str) Logger::instance(CPFW_LOGGER_NAME)->log(str); |
|
51 |
|
52 #endif /* CPLOGGER_H */ |