diff options
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
-rw-r--r-- | src/corelib/global/qlogging.cpp | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp new file mode 100644 index 0000000000..bc26c9b6b7 --- /dev/null +++ b/src/corelib/global/qlogging.cpp @@ -0,0 +1,76 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/ +** +** This file is part of the QtCore module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** GNU Lesser General Public License Usage +** This file may be used under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation and +** appearing in the file LICENSE.LGPL included in the packaging of this +** file. Please review the following information to ensure the GNU Lesser +** General Public License version 2.1 requirements will be met: +** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU General +** Public License version 3.0 as published by the Free Software Foundation +** and appearing in the file LICENSE.GPL included in the packaging of this +** file. Please review the following information to ensure the GNU General +** Public License version 3.0 requirements will be met: +** http://www.gnu.org/copyleft/gpl.html. +** +** Other Usage +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include <qlogging.h> + +QT_BEGIN_NAMESPACE + +/*! + \class QMessageLogContext + \relates <QtGlobal> + \brief The QMessageLogContext class provides additional information about a log message. + \since 5.0 + + The class provides information about the source code location a qDebug(), qWarning(), + qCritical() or qFatal() message was generated. + + \sa QMessageLogger, QMessageHandler, qInstallMessageHandler() +*/ + +/*! + \class QMessageLogger + \relates <QtGlobal> + \brief The QMessageLogger class generates log messages. + \since 5.0 + + QMessageLogger is used to generate messages for the Qt logging framework. Most of the time + is transparently used through the qDebug(), qWarning(), qCritical, or qFatal() functions, + which are actually macros that expand to QMessageLogger(__FILE__, __LINE__, Q_FUNC_INFO).debug() + et al. + + One example of direct use is to forward errors that stem from a scripting language, e.g. QML: + + \snippet doc/src/snippets/code/qlogging/qlogging.cpp 1 + + \sa QMessageLogContext, qDebug(), qWarning(), qCritical(), qFatal() +*/ + +QT_END_NAMESPACE |