controlpanel/controlpanel_plat/inc/cplogger.h
changeset 19 30540fccecae
parent 18 e3554c9069b6
child 40 6465d5bb863a
equal deleted inserted replaced
18:e3554c9069b6 19:30540fccecae
    22     Windows: C:/ControlPanel/debug/bin/controlpanellog.conf
    22     Windows: C:/ControlPanel/debug/bin/controlpanellog.conf
    23     Symbian: C:/data/.config/controlpanellog.conf
    23     Symbian: C:/data/.config/controlpanellog.conf
    24 
    24 
    25     Format:
    25     Format:
    26 
    26 
    27     [ControlPanel]
    27     [CpFramework]
    28     logdatetime = 1
    28     logdatetime = 1
    29     logloggername = 1
    29     logloggername = 1
       
    30     datetimeformat = hh:mm:ss:zzz
    30     output = debugoutput fileoutput
    31     output = debugoutput fileoutput
    31     fileoutput/logfile = C:/data/logs/controlpanel.log
    32     fileoutput/logfile = C:/data/logs/cpframework.log
    32     fileoutput/truncate = 0
    33     fileoutput/truncate = 1
       
    34     
       
    35     [CpPerformance]
       
    36     logdatetime = 1
       
    37     datetimeformat = hh:mm:ss:zzz
       
    38     output = fileoutput
       
    39     fileoutput/logfile = C:/data/logs/cpperformance.log
       
    40     fileoutput/truncate = 1
    33 */
    41 */
    34 
    42 
    35 #include <QLatin1String>
    43 #include <QLatin1String>
    36 #include <logger.h>
    44 #include <logger.h>
    37 
    45 
    38 #define CPFW_LOGGER_NAME     QLatin1String("CpFramework")
    46 #define CPFW_LOGGER_NAME       QLatin1String("CpFramework")
       
    47 #define CPPERF_LOGGER_NAME     QLatin1String("CpPerformance")
    39 
    48 
    40 #if defined (Q_OS_SYMBIAN)
    49 #if defined (Q_OS_SYMBIAN)
    41     #define CP_LOGGER_CONFIG_PATH QLatin1String("C:/data/.config/controlpanellog.conf")
    50     #define CP_LOGGER_CONFIG_PATH QLatin1String("C:/data/.config/controlpanellog.conf")
    42 #elif defined (Q_WS_WIN)
    51 #elif defined (Q_WS_WIN)
    43     #ifdef _DEBUG
    52     #ifdef _DEBUG
    45     #else 
    54     #else 
    46         #define CP_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/release/bin/controlpanellog.conf")
    55         #define CP_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/release/bin/controlpanellog.conf")
    47     #endif
    56     #endif
    48 #endif
    57 #endif
    49 
    58 
    50 #define CPFW_LOG(str) Logger::instance(CPFW_LOGGER_NAME)->log(str);
    59 #define CPFW_LOG(str)   Logger::instance(CPFW_LOGGER_NAME)->log(str);
       
    60 #define CPPERF_LOG(str) Logger::instance(CPPERF_LOGGER_NAME)->log(str);
    51 
    61 
    52 #endif /* CPLOGGER_H */
    62 #endif /* CPLOGGER_H */