Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d5e62c01ae8d1e579463c6a871dd44bf > files > 560

qtbase5-doc-5.12.6-2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qlogging.cpp -->
  <title>QMessageLogger Class | Qt Core 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QMessageLogger</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtcore-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QMessageLogger Class</h1>
<!-- $$$QMessageLogger-brief -->
<p>The <a href="qmessagelogger.html">QMessageLogger</a> class generates log messages. <a href="#details">More...</a></p>
<!-- @@@QMessageLogger -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QMessageLogger&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.0</td></tr></table></div><ul>
<li><a href="qmessagelogger-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#CategoryFunction-typedef">CategoryFunction</a></b></td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#QMessageLogger">QMessageLogger</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#QMessageLogger-2">QMessageLogger</a></b>(const char *<i>file</i>, int <i>line</i>, const char *<i>function</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#QMessageLogger-3">QMessageLogger</a></b>(const char *<i>file</i>, int <i>line</i>, const char *<i>function</i>, const char *<i>category</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#critical">critical</a></b>(const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#critical-1">critical</a></b>(const QLoggingCategory &amp;<i>cat</i>, const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#critical-2">critical</a></b>(QMessageLogger::CategoryFunction <i>catFunc</i>, const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#critical-3">critical</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#critical-4">critical</a></b>(const QLoggingCategory &amp;<i>cat</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#critical-5">critical</a></b>(QMessageLogger::CategoryFunction <i>catFunc</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#debug">debug</a></b>(const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#debug-1">debug</a></b>(const QLoggingCategory &amp;<i>cat</i>, const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#debug-2">debug</a></b>(QMessageLogger::CategoryFunction <i>catFunc</i>, const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#debug-3">debug</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#debug-4">debug</a></b>(const QLoggingCategory &amp;<i>cat</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#debug-5">debug</a></b>(QMessageLogger::CategoryFunction <i>catFunc</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#fatal">fatal</a></b>(const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#info">info</a></b>(const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#info-1">info</a></b>(const QLoggingCategory &amp;<i>cat</i>, const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#info-2">info</a></b>(QMessageLogger::CategoryFunction <i>catFunc</i>, const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#info-3">info</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#info-4">info</a></b>(const QLoggingCategory &amp;<i>cat</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#info-5">info</a></b>(QMessageLogger::CategoryFunction <i>catFunc</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#warning">warning</a></b>(const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#warning-1">warning</a></b>(const QLoggingCategory &amp;<i>cat</i>, const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#warning-2">warning</a></b>(QMessageLogger::CategoryFunction <i>catFunc</i>, const char *<i>msg</i>, <i>...</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#warning-3">warning</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#warning-4">warning</a></b>(const QLoggingCategory &amp;<i>cat</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDebug </td><td class="memItemRight bottomAlign"><b><a href="qmessagelogger.html#warning-5">warning</a></b>(QMessageLogger::CategoryFunction <i>catFunc</i>) const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QMessageLogger-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qmessagelogger.html">QMessageLogger</a> class generates log messages.</p>
<p><a href="qmessagelogger.html">QMessageLogger</a> is used to generate messages for the Qt logging framework. Usually one uses it through <a href="qtglobal.html#qDebug">qDebug</a>(), <a href="qtglobal.html#qInfo">qInfo</a>(), <a href="qtglobal.html#qWarning">qWarning</a>(), <a href="qtglobal.html#qCritical">qCritical</a>, or <a href="qtglobal.html#qFatal">qFatal</a>() functions, which are actually macros: For example <a href="qtglobal.html#qDebug">qDebug</a>() expands to <a href="qmessagelogger.html">QMessageLogger</a>(__FILE__, __LINE__, <a href="qtglobal.html#Q_FUNC_INFO">Q_FUNC_INFO</a>).<a href="qmessagelogger.html#debug-3">debug</a>() for debug builds, and <a href="qmessagelogger.html">QMessageLogger</a>(0, 0, 0).<a href="qmessagelogger.html#debug-3">debug</a>() for release builds.</p>
<p>One example of direct use is to forward errors that stem from a scripting language, e.g&#x2e; QML:</p>
<pre class="cpp">

      <span class="type">void</span> statusChanged(<span class="type">QDeclarativeComponent</span><span class="operator">::</span>Status status) {
          <span class="keyword">if</span> (status <span class="operator">=</span><span class="operator">=</span> <span class="type">QDeclarativeComponent</span><span class="operator">::</span>Error) {
              foreach (<span class="keyword">const</span> <span class="type">QDeclarativeError</span> <span class="operator">&amp;</span>error<span class="operator">,</span> component<span class="operator">-</span><span class="operator">&gt;</span>errors()) {
                  <span class="keyword">const</span> <span class="type"><a href="qbytearray.html">QByteArray</a></span> file <span class="operator">=</span> error<span class="operator">.</span>url()<span class="operator">.</span>toEncoded();
                  <span class="type"><a href="qmessagelogger.html#QMessageLogger">QMessageLogger</a></span>(file<span class="operator">.</span>constData()<span class="operator">,</span> error<span class="operator">.</span>line()<span class="operator">,</span> <span class="number">0</span>)<span class="operator">.</span>debug() <span class="operator">&lt;</span><span class="operator">&lt;</span> error<span class="operator">.</span>description();
              }
          }
      }

</pre>
</div>
<p><b>See also </b><a href="qmessagelogcontext.html">QMessageLogContext</a>, <a href="qtglobal.html#qDebug">qDebug</a>(), <a href="qtglobal.html#qInfo">qInfo</a>(), <a href="qtglobal.html#qWarning">qWarning</a>(), <a href="qtglobal.html#qCritical">qCritical</a>(), and <a href="qtglobal.html#qFatal">qFatal</a>().</p>
<!-- @@@QMessageLogger -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$CategoryFunction -->
<h3 class="fn" id="CategoryFunction-typedef"><a name="CategoryFunction-typedef"></a>typedef QMessageLogger::<span class="name">CategoryFunction</span></h3>
<p>This is a typedef for a pointer to a function with the following signature:</p>
<pre class="cpp">

      <span class="keyword">const</span> <span class="type"><a href="qloggingcategory.html">QLoggingCategory</a></span> <span class="operator">&amp;</span>category();

</pre>
<p>A function which this signature is generated by <a href="qloggingcategory.html#Q_DECLARE_LOGGING_CATEGORY">Q_DECLARE_LOGGING_CATEGORY</a>, <a href="qloggingcategory.html#Q_LOGGING_CATEGORY">Q_LOGGING_CATEGORY</a>.</p>
<p>This typedef was introduced in  Qt 5.3.</p>
<!-- @@@CategoryFunction -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QMessageLogger[overload1]$$$QMessageLogger -->
<h3 class="fn" id="QMessageLogger"><a name="QMessageLogger"></a>QMessageLogger::<span class="name">QMessageLogger</span>()</h3>
<p>Constructs a default <a href="qmessagelogger.html">QMessageLogger</a>. See the other constructors to specify context information.</p>
<!-- @@@QMessageLogger -->
<!-- $$$QMessageLogger$$$QMessageLoggerconstchar*intconstchar* -->
<h3 class="fn" id="QMessageLogger-2"><a name="QMessageLogger-2"></a>QMessageLogger::<span class="name">QMessageLogger</span>(const <span class="type">char</span> *<i>file</i>, <span class="type">int</span> <i>line</i>, const <span class="type">char</span> *<i>function</i>)</h3>
<p>Constructs a <a href="qmessagelogger.html">QMessageLogger</a> to record log messages for <i>file</i> at <i>line</i> in <i>function</i>. The is equivalent to <a href="qmessagelogger.html">QMessageLogger</a>(file, line, function, &quot;default&quot;)</p>
<!-- @@@QMessageLogger -->
<!-- $$$QMessageLogger$$$QMessageLoggerconstchar*intconstchar*constchar* -->
<h3 class="fn" id="QMessageLogger-3"><a name="QMessageLogger-3"></a>QMessageLogger::<span class="name">QMessageLogger</span>(const <span class="type">char</span> *<i>file</i>, <span class="type">int</span> <i>line</i>, const <span class="type">char</span> *<i>function</i>, const <span class="type">char</span> *<i>category</i>)</h3>
<p>Constructs a <a href="qmessagelogger.html">QMessageLogger</a> to record <i>category</i> messages for <i>file</i> at <i>line</i> in <i>function</i>.</p>
<!-- @@@QMessageLogger -->
<!-- $$$critical[overload1]$$$criticalconstchar*... -->
<h3 class="fn" id="critical"><a name="critical"></a><span class="type">void</span> QMessageLogger::<span class="name">critical</span>(const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a critical message specified with format <i>msg</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p><b>See also </b><a href="qtglobal.html#qCritical">qCritical</a>().</p>
<!-- @@@critical -->
<!-- $$$critical$$$criticalconstQLoggingCategory&constchar*... -->
<h3 class="fn" id="critical-1"><a name="critical-1"></a><span class="type">void</span> QMessageLogger::<span class="name">critical</span>(const <span class="type"><a href="qloggingcategory.html">QLoggingCategory</a></span> &amp;<i>cat</i>, const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a critical message specified with format <i>msg</i> for the context <i>cat</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCCritical">qCCritical</a>().</p>
<!-- @@@critical -->
<!-- $$$critical$$$criticalQMessageLogger::CategoryFunctionconstchar*... -->
<h3 class="fn" id="critical-2"><a name="critical-2"></a><span class="type">void</span> QMessageLogger::<span class="name">critical</span>(<span class="type"><a href="qmessagelogger.html#CategoryFunction-typedef">QMessageLogger::CategoryFunction</a></span> <i>catFunc</i>, const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a critical message specified with format <i>msg</i> for the context returned by <i>catFunc</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCCritical">qCCritical</a>().</p>
<!-- @@@critical -->
<!-- $$$critical$$$critical -->
<h3 class="fn" id="critical-3"><a name="critical-3"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">critical</span>() const</h3>
<p>Logs a critical message using a <a href="qdebug.html">QDebug</a> stream</p>
<p><b>See also </b><a href="qtglobal.html#qCritical">qCritical</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@critical -->
<!-- $$$critical$$$criticalconstQLoggingCategory& -->
<h3 class="fn" id="critical-4"><a name="critical-4"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">critical</span>(const <span class="type"><a href="qloggingcategory.html">QLoggingCategory</a></span> &amp;<i>cat</i>) const</h3>
<p>Logs a critical message into category <i>cat</i> using a <a href="qdebug.html">QDebug</a> stream.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCCritical">qCCritical</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@critical -->
<!-- $$$critical$$$criticalQMessageLogger::CategoryFunction -->
<h3 class="fn" id="critical-5"><a name="critical-5"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">critical</span>(<span class="type"><a href="qmessagelogger.html#CategoryFunction-typedef">QMessageLogger::CategoryFunction</a></span> <i>catFunc</i>) const</h3>
<p>Logs a critical message into category returned by <i>catFunc</i> using a <a href="qdebug.html">QDebug</a> stream.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCCritical">qCCritical</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@critical -->
<!-- $$$debug[overload1]$$$debugconstchar*... -->
<h3 class="fn" id="debug"><a name="debug"></a><span class="type">void</span> QMessageLogger::<span class="name">debug</span>(const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a debug message specified with format <i>msg</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p><b>See also </b><a href="qtglobal.html#qDebug">qDebug</a>().</p>
<!-- @@@debug -->
<!-- $$$debug$$$debugconstQLoggingCategory&constchar*... -->
<h3 class="fn" id="debug-1"><a name="debug-1"></a><span class="type">void</span> QMessageLogger::<span class="name">debug</span>(const <span class="type"><a href="qloggingcategory.html">QLoggingCategory</a></span> &amp;<i>cat</i>, const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a debug message specified with format <i>msg</i> for the context <i>cat</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCDebug">qCDebug</a>().</p>
<!-- @@@debug -->
<!-- $$$debug$$$debugQMessageLogger::CategoryFunctionconstchar*... -->
<h3 class="fn" id="debug-2"><a name="debug-2"></a><span class="type">void</span> QMessageLogger::<span class="name">debug</span>(<span class="type"><a href="qmessagelogger.html#CategoryFunction-typedef">QMessageLogger::CategoryFunction</a></span> <i>catFunc</i>, const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a debug message specified with format <i>msg</i> for the context returned by <i>catFunc</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCDebug">qCDebug</a>().</p>
<!-- @@@debug -->
<!-- $$$debug$$$debug -->
<h3 class="fn" id="debug-3"><a name="debug-3"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">debug</span>() const</h3>
<p>Logs a debug message using a <a href="qdebug.html">QDebug</a> stream</p>
<p><b>See also </b><a href="qtglobal.html#qDebug">qDebug</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@debug -->
<!-- $$$debug$$$debugconstQLoggingCategory& -->
<h3 class="fn" id="debug-4"><a name="debug-4"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">debug</span>(const <span class="type"><a href="qloggingcategory.html">QLoggingCategory</a></span> &amp;<i>cat</i>) const</h3>
<p>Logs a debug message into category <i>cat</i> using a <a href="qdebug.html">QDebug</a> stream.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCDebug">qCDebug</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@debug -->
<!-- $$$debug$$$debugQMessageLogger::CategoryFunction -->
<h3 class="fn" id="debug-5"><a name="debug-5"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">debug</span>(<span class="type"><a href="qmessagelogger.html#CategoryFunction-typedef">QMessageLogger::CategoryFunction</a></span> <i>catFunc</i>) const</h3>
<p>Logs a debug message into category returned by <i>catFunc</i> using a <a href="qdebug.html">QDebug</a> stream.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCDebug">qCDebug</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@debug -->
<!-- $$$fatal[overload1]$$$fatalconstchar*... -->
<h3 class="fn" id="fatal"><a name="fatal"></a><span class="type">void</span> QMessageLogger::<span class="name">fatal</span>(const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a fatal message specified with format <i>msg</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p><b>See also </b><a href="qtglobal.html#qFatal">qFatal</a>().</p>
<!-- @@@fatal -->
<!-- $$$info[overload1]$$$infoconstchar*... -->
<h3 class="fn" id="info"><a name="info"></a><span class="type">void</span> QMessageLogger::<span class="name">info</span>(const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs an informational message specified with format <i>msg</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p>This function was introduced in  Qt 5.5.</p>
<p><b>See also </b><a href="qtglobal.html#qInfo">qInfo</a>().</p>
<!-- @@@info -->
<!-- $$$info$$$infoconstQLoggingCategory&constchar*... -->
<h3 class="fn" id="info-1"><a name="info-1"></a><span class="type">void</span> QMessageLogger::<span class="name">info</span>(const <span class="type"><a href="qloggingcategory.html">QLoggingCategory</a></span> &amp;<i>cat</i>, const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs an informational message specified with format <i>msg</i> for the context <i>cat</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p>This function was introduced in  Qt 5.5.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCInfo">qCInfo</a>().</p>
<!-- @@@info -->
<!-- $$$info$$$infoQMessageLogger::CategoryFunctionconstchar*... -->
<h3 class="fn" id="info-2"><a name="info-2"></a><span class="type">void</span> QMessageLogger::<span class="name">info</span>(<span class="type"><a href="qmessagelogger.html#CategoryFunction-typedef">QMessageLogger::CategoryFunction</a></span> <i>catFunc</i>, const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs an informational message specified with format <i>msg</i> for the context returned by <i>catFunc</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p>This function was introduced in  Qt 5.5.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCInfo">qCInfo</a>().</p>
<!-- @@@info -->
<!-- $$$info$$$info -->
<h3 class="fn" id="info-3"><a name="info-3"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">info</span>() const</h3>
<p>Logs an informational message using a <a href="qdebug.html">QDebug</a> stream.</p>
<p>This function was introduced in  Qt 5.5.</p>
<p><b>See also </b><a href="qtglobal.html#qInfo">qInfo</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@info -->
<!-- $$$info$$$infoconstQLoggingCategory& -->
<h3 class="fn" id="info-4"><a name="info-4"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">info</span>(const <span class="type"><a href="qloggingcategory.html">QLoggingCategory</a></span> &amp;<i>cat</i>) const</h3>
<p>Logs an informational message into the category <i>cat</i> using a <a href="qdebug.html">QDebug</a> stream.</p>
<p>This function was introduced in  Qt 5.5.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCInfo">qCInfo</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@info -->
<!-- $$$info$$$infoQMessageLogger::CategoryFunction -->
<h3 class="fn" id="info-5"><a name="info-5"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">info</span>(<span class="type"><a href="qmessagelogger.html#CategoryFunction-typedef">QMessageLogger::CategoryFunction</a></span> <i>catFunc</i>) const</h3>
<p>Logs an informational message into category returned by <i>catFunc</i> using a <a href="qdebug.html">QDebug</a> stream.</p>
<p>This function was introduced in  Qt 5.5.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCInfo">qCInfo</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@info -->
<!-- $$$warning[overload1]$$$warningconstchar*... -->
<h3 class="fn" id="warning"><a name="warning"></a><span class="type">void</span> QMessageLogger::<span class="name">warning</span>(const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a warning message specified with format <i>msg</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p><b>See also </b><a href="qtglobal.html#qWarning">qWarning</a>().</p>
<!-- @@@warning -->
<!-- $$$warning$$$warningconstQLoggingCategory&constchar*... -->
<h3 class="fn" id="warning-1"><a name="warning-1"></a><span class="type">void</span> QMessageLogger::<span class="name">warning</span>(const <span class="type"><a href="qloggingcategory.html">QLoggingCategory</a></span> &amp;<i>cat</i>, const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a warning message specified with format <i>msg</i> for the context <i>cat</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCWarning">qCWarning</a>().</p>
<!-- @@@warning -->
<!-- $$$warning$$$warningQMessageLogger::CategoryFunctionconstchar*... -->
<h3 class="fn" id="warning-2"><a name="warning-2"></a><span class="type">void</span> QMessageLogger::<span class="name">warning</span>(<span class="type"><a href="qmessagelogger.html#CategoryFunction-typedef">QMessageLogger::CategoryFunction</a></span> <i>catFunc</i>, const <span class="type">char</span> *<i>msg</i>, <i>...</i>) const</h3>
<p>Logs a warning message specified with format <i>msg</i> for the context returned by <i>catFunc</i>. Additional parameters, specified by <i>msg</i>, may be used.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCWarning">qCWarning</a>().</p>
<!-- @@@warning -->
<!-- $$$warning$$$warning -->
<h3 class="fn" id="warning-3"><a name="warning-3"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">warning</span>() const</h3>
<p>Logs a warning message using a <a href="qdebug.html">QDebug</a> stream</p>
<p><b>See also </b><a href="qtglobal.html#qWarning">qWarning</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@warning -->
<!-- $$$warning$$$warningconstQLoggingCategory& -->
<h3 class="fn" id="warning-4"><a name="warning-4"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">warning</span>(const <span class="type"><a href="qloggingcategory.html">QLoggingCategory</a></span> &amp;<i>cat</i>) const</h3>
<p>Logs a warning message into category <i>cat</i> using a <a href="qdebug.html">QDebug</a> stream.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCWarning">qCWarning</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@warning -->
<!-- $$$warning$$$warningQMessageLogger::CategoryFunction -->
<h3 class="fn" id="warning-5"><a name="warning-5"></a><span class="type"><a href="qdebug.html">QDebug</a></span> QMessageLogger::<span class="name">warning</span>(<span class="type"><a href="qmessagelogger.html#CategoryFunction-typedef">QMessageLogger::CategoryFunction</a></span> <i>catFunc</i>) const</h3>
<p>Logs a warning message into category returned by <i>catFunc</i> using a <a href="qdebug.html">QDebug</a> stream.</p>
<p>This function was introduced in  Qt 5.3.</p>
<p><b>See also </b><a href="qloggingcategory.html#qCWarning">qCWarning</a>() and <a href="qdebug.html">QDebug</a>.</p>
<!-- @@@warning -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>