gsprofilesrv_plat/controlpanel_api/inc/loggerglobal.h
author hgs
Wed, 29 Sep 2010 10:45:02 +0800
changeset 61 33e86ecbfdb4
parent 52 controlpanel/controlpanel_plat/inc/loggerglobal.h@58cebe0861a8
permissions -rw-r--r--
201037

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0""
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Common definitions for log.
*
*/
#ifndef LOGGERGLOBAL_H
#define LOGGERGLOBAL_H

#include <QtGlobal>

#ifdef BUILD_LOGGER_DLL
    #define LOGGER_EXPORT Q_DECL_EXPORT
#else
    #define LOGGER_EXPORT Q_DECL_IMPORT
#endif

#define LINE_SEPERATOR              QLatin1String("\r\n");

#define SETTINGS_SECTION_SEPERATOR  QLatin1String("/")

//following strings can be used in configuration file to specify logger's properties
//refer to logger.h
#define LOGGER_LOGDATETIME          QLatin1String("logdatetime")
#define LOGGER_LOGLOGGERNAME        QLatin1String("logloggername")
#define LOGGER_DATETIMEFORMAT       QLatin1String("datetimeformat")
#define LOGGER_OUTPUT               QLatin1String("output")

#define DEBUGOUTPUT_NAME            QLatin1String("debugoutput")
#define CONSOLEOUTPUT_NAME          QLatin1String("consoleoutput")
#define FILEOUTPUT_NAME             QLatin1String("fileoutput")
    #define FILEOUTPUT_LOGFILE      QLatin1String("logfile")
    #define FILEOUTPUT_TRUNCATE     QLatin1String("truncate")

#endif //LOGGERGLOBAL_H