equal
deleted
inserted
replaced
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: Log utility for controlpanel framework. |
15 * |
15 * |
16 */ |
16 */ |
17 #ifndef CPLOGGER_H |
17 #ifndef CPLOGGER_H |
18 #define CPLOGGER_H |
18 #define CPLOGGER_H |
19 |
19 |
41 |
41 |
42 #include <QLatin1String> |
42 #include <QLatin1String> |
43 #include <logger.h> |
43 #include <logger.h> |
44 |
44 |
45 /* |
45 /* |
46 make CPFW_LOG work |
46 define ENABLE_CPFW_LOG to make CPFW_LOG work |
47 */ |
47 */ |
48 |
48 |
49 //#define ENABLE_CPFW_LOG |
49 //#define ENABLE_CPFW_LOG |
50 |
50 |
51 /* |
51 /* |
52 make CPPERF_LOG work |
52 define ENABLE_CPPERF_LOG to make CPPERF_LOG work |
53 */ |
53 */ |
54 |
54 |
55 //#define ENABLE_CPPERF_LOG |
55 //#define ENABLE_CPPERF_LOG |
56 |
56 |
57 #define CPFW_LOGGER_NAME QLatin1String("CpFramework") |
57 #define CPFW_LOGGER_NAME QLatin1String("CpFramework") |
58 #define CPPERF_LOGGER_NAME QLatin1String("CpPerformance") |
58 #define CPPERF_LOGGER_NAME QLatin1String("CpPerformance") |
59 |
59 |
60 #define CP_LOGGER_CONFIG_PATH QLatin1String(":/logconf/controlpanellog.conf") |
60 #define CP_LOGGER_CONFIG_PATH QLatin1String(":/logconf/controlpanellog.conf") |
61 |
61 |
62 #ifdef ENABLE_CPFW_LOG |
62 #ifdef ENABLE_CPFW_LOG |
63 #define CPFW_LOG(str) Logger::instance(CPFW_LOGGER_NAME)->log(str); |
63 #define CPFW_LOG(str) Logger::instance(CPFW_LOGGER_NAME)->log(str); |
|
64 #define CPSP_LOG_FUNC_ENTRY(func) LogFunctionEntryHelper ___cpfw_log_func_entry_helper(CPFW_LOGGER_NAME,func); |
64 #else |
65 #else |
65 #define CPFW_LOG(str) |
66 #define CPFW_LOG(str) |
|
67 #define CPSP_LOG_FUNC_ENTRY(func) |
66 #endif |
68 #endif |
67 |
69 |
68 #ifdef ENABLE_CPPERF_LOG |
70 #ifdef ENABLE_CPPERF_LOG |
69 #define CPPERF_LOG(str) Logger::instance(CPPERF_LOGGER_NAME)->log(str); |
71 #define CPPERF_LOG(str) Logger::instance(CPPERF_LOGGER_NAME)->log(str); |
70 #else |
72 #else |