controlpanelui/src/cpserviceprovider/src/cpsplogger.h
changeset 40 593f946f4fec
parent 12 624337f114fe
equal deleted inserted replaced
22:a5692c68d772 40:593f946f4fec
    19 #define CPSPLOGGER_H
    19 #define CPSPLOGGER_H
    20 
    20 
    21 #include <QLatin1String>
    21 #include <QLatin1String>
    22 #include <logger.h>
    22 #include <logger.h>
    23 
    23 
    24 #define CPSP_LOGGER_NAME     QLatin1String("CpServiceProvider")
    24 #ifdef ENABLE_CPSP_LOG
       
    25     #define CPSP_LOGGER_NAME          QLatin1String("CpServiceProvider")
       
    26     #define CPSP_LOGGER_CONFIG_PATH   QLatin1String(":/logconf/cpserviceproviderlog.conf")
    25 
    27 
    26 #if defined (Q_OS_SYMBIAN)
    28     #define CPSP_LOG(str)             Logger::instance(CPSP_LOGGER_NAME)->log(str);
    27     #define CPSP_LOGGER_CONFIG_PATH QLatin1String("C:/data/.config/cpserviceproviderlog.conf")
    29     #define CPSP_LOG_FUNC_ENTRY(func) LogFunctionEntryHelper ___cpsp_log_func_entry_helper(CPSP_LOGGER_NAME,func);
    28 #elif defined (Q_WS_WIN)
    30 #else
    29     #ifdef _DEBUG
    31     #define CPSP_LOG(str)
    30         #define CPSP_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/debug/bin/cpserviceproviderlog.conf")
    32     #define CPSP_LOG_FUNC_ENTRY(func)
    31     #else 
       
    32         #define CPSP_LOGGER_CONFIG_PATH QLatin1String("C:/controlpanel/release/bin/cpserviceproviderlog.conf")
       
    33     #endif
       
    34 #endif
    33 #endif
    35 
    34 
    36 #define CPSP_LOG(str) Logger::instance(CPSP_LOGGER_NAME)->log(str);
       
    37 
    35 
    38 #endif
    36 #endif