}
#undef qDebug
+/*!
+ Logs a debug message specified with format \a msg. Additional
+ parameters, specified by \a msg, may be used.
+
+ \sa qDebug()
+*/
void QMessageLogger::debug(const char *msg, ...)
{
va_list ap;
#ifndef QT_NO_DEBUG_STREAM
+/*!
+ Logs a debug message using a QDebug stream
+
+ \sa qDebug(), QDebug
+*/
QDebug QMessageLogger::debug()
{
QDebug dbg = QDebug(QtDebugMsg);
return dbg;
}
+/*!
+ \internal
+
+ Returns a QNoDebug object, which is used to ignore debugging output.
+
+ \sa QNoDebug, qDebug()
+*/
QNoDebug QMessageLogger::noDebug()
{
return QNoDebug();
#endif
#undef qWarning
+/*!
+ Logs a warning message specified with format \a msg. Additional
+ parameters, specified by \a msg, may be used.
+
+ \sa qWarning()
+*/
void QMessageLogger::warning(const char *msg, ...)
{
va_list ap;
}
#ifndef QT_NO_DEBUG_STREAM
+/*!
+ Logs a debug message using a QDebug stream
+
+ \sa qWarning(), QDebug
+*/
QDebug QMessageLogger::warning()
{
QDebug dbg = QDebug(QtWarningMsg);
#endif
#undef qCritical
+
+/*!
+ Logs a critical message specified with format \a msg. Additional
+ parameters, specified by \a msg, may be used.
+
+ \sa qCritical()
+*/
void QMessageLogger::critical(const char *msg, ...)
{
va_list ap;
}
#ifndef QT_NO_DEBUG_STREAM
+/*!
+ Logs a critical message using a QDebug stream
+
+ \sa qCritical(), QDebug
+*/
QDebug QMessageLogger::critical()
{
QDebug dbg = QDebug(QtCriticalMsg);
#endif
#undef qFatal
-void QMessageLogger::fatal(const char *msg, ...) Q_DECL_NOTHROW
+/*!
+ Logs a fatal message specified with format \a msg. Additional
+ parameters, specified by \a msg, may be used.
+
+ \sa qFatal()
+*/
+void QMessageLogger::fatal(const char *msg, ...) Q_DECL_NOTHROW
{
va_list ap;
va_start(ap, msg); // use variable arg list
Installs a Qt message \a handler which has been defined
previously. This method is deprecated, use qInstallMessageHandler
instead.
- \sa QtMsgHandler, qInstallMessageHandler
+ \sa QtMsgHandler, qInstallMessageHandler()
*/
/*!
\fn void qSetMessagePattern(const QString &pattern)
\row \li \c %{type} \li "debug", "warning", "critical" or "fatal"
\endtable
- The default pattern is "%{message}".
+ The default \a pattern is "%{message}".
- The pattern can also be changed at runtime by setting the QT_MESSAGE_PATTERN
+ The \a pattern can also be changed at runtime by setting the QT_MESSAGE_PATTERN
environment variable; if both qSetMessagePattern() is called and QT_MESSAGE_PATTERN is
set, the environment variable takes precedence.
qSetMessagePattern() has no effect if a custom message handler is installed.
- \sa qInstallMessageHandler, {Debugging Techniques}
+ \sa qInstallMessageHandler(), {Debugging Techniques}
*/
QtMessageHandler qInstallMessageHandler(QtMessageHandler h)
qMessagePattern()->setPattern(pattern);
}
+/*!
+ Copies context information from \a logContext into this QMessageLogContext
+ \internal
+*/
void QMessageLogContext::copy(const QMessageLogContext &logContext)
{
this->category = logContext.category;
this->function = logContext.function;
}
+/*!
+ \fn QMessageLogger::QMessageLogger()
+
+ Constructs a default QMessageLogger. See the other constructors to specify
+ context information.
+*/
+
+/*!
+ \fn QMessageLogger::QMessageLogger(const char *file, int line, const char *function)
+
+ Constructs a QMessageLogger to record log messages for \a file at \a line
+ in \a function. The is equivalent to QMessageLogger(file, line, function, "default")
+*/
+/*!
+ \fn QMessageLogger::QMessageLogger(const char *file, int line, const char *function, const char *category)
+
+ Constructs a QMessageLogger to record \a category messages for \a file at \a line
+ in \a function.
+*/
+
+/*!
+ \fn void QMessageLogger::noDebug(const char *, ...)
+ \internal
+
+ Ignores logging output
+
+ \sa QNoDebug, qDebug()
+*/
+
+/*!
+ \fn QMessageLogContext::QMessageLogContext()
+ \internal
+
+ Constructs a QMessageLogContext
+*/
+
+/*!
+ \fn QMessageLogContext::QMessageLogContext(const char *fileName, int lineNumber, const char *functionName, const char *categoryName)
+ \internal
+
+ Constructs a QMessageLogContext with for file \a fileName at line
+ \a lineNumber, in function \a functionName, and category \a CategoryName.
+*/
+
QT_END_NAMESPACE