controlpanel/controlpanel_plat/inc/loggerglobal.h
author hgs
Thu, 01 Apr 2010 03:23:37 +0800
changeset 32 20bd089f4aaa
child 52 58cebe0861a8
permissions -rw-r--r--
201005
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0""
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
#ifndef LOGGERGLOBAL_H
hgs
parents:
diff changeset
    18
#define LOGGERGLOBAL_H
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
#include <QtGlobal>
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#ifdef BUILD_LOGGER_DLL
hgs
parents:
diff changeset
    23
    #define LOGGER_EXPORT Q_DECL_EXPORT
hgs
parents:
diff changeset
    24
#else
hgs
parents:
diff changeset
    25
    #define LOGGER_EXPORT Q_DECL_IMPORT
hgs
parents:
diff changeset
    26
#endif
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
#define LINE_SEPERATOR              QLatin1String("\r\n");
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
#define SETTINGS_SECTION_SEPERATOR  QLatin1String("/")
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
//following strings can be used in configuration file to specify logger's properties
hgs
parents:
diff changeset
    33
//refer to logger.h
hgs
parents:
diff changeset
    34
#define LOGGER_LOGDATETIME          QLatin1String("logdatetime")
hgs
parents:
diff changeset
    35
#define LOGGER_LOGLOGGERNAME        QLatin1String("logloggername")
hgs
parents:
diff changeset
    36
#define LOGGER_DATETIMEFORMAT       QLatin1String("datetimeformat")
hgs
parents:
diff changeset
    37
#define LOGGER_OUTPUT               QLatin1String("output")
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
#define DEBUGOUTPUT_NAME            QLatin1String("debugoutput")
hgs
parents:
diff changeset
    40
#define CONSOLEOUTPUT_NAME          QLatin1String("consoleoutput")
hgs
parents:
diff changeset
    41
#define FILEOUTPUT_NAME             QLatin1String("fileoutput")
hgs
parents:
diff changeset
    42
    #define FILEOUTPUT_LOGFILE      QLatin1String("logfile")
hgs
parents:
diff changeset
    43
    #define FILEOUTPUT_TRUNCATE     QLatin1String("truncate")
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
#endif //LOGGERGLOBAL_H