<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.5">
  <compounddef id="group__log" kind="group">
    <compoundname>log</compoundname>
    <title>Logging-related operations</title>
      <sectiondef kind="func">
      <memberdef kind="function" id="group__log_1gaf028af10a73cc15f971101ca007bb7c4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__attr_1ga008cbf050a89152ec67d33e534cd3012" kindref="member">QDB_API_LINKAGE</ref> <ref refid="group__error_1ga365e768c3ca0f6387d8798eb98c40443" kindref="member">qdb_error_t</ref></type>
        <definition>QDB_API_LINKAGE qdb_error_t qdb_log_add_callback</definition>
        <argsstring>(qdb_log_callback cb, qdb_log_callback_id *callback_id)</argsstring>
        <name>qdb_log_add_callback</name>
        <param>
          <type><ref refid="group__log_1ga27259bcef89d32c184a9e03fc0f157ce" kindref="member">qdb_log_callback</ref></type>
          <declname>cb</declname>
        </param>
        <param>
          <type><ref refid="group__log_1ga6a72d356408c58332b03af73a52c84d6" kindref="member">qdb_log_callback_id</ref> *</type>
          <declname>callback_id</declname>
        </param>
        <briefdescription>
<para>Adds a callback that will receive internal API log messages. This can be used to incorporate internal API statuses in your log. </para>        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>cb</parametername>
</parameternamelist>
<parameterdescription>
<para>A callback of type <ref refid="group__log_1ga27259bcef89d32c184a9e03fc0f157ce" kindref="member">qdb_log_callback</ref>. The callback will be called every time the API emits a log message.</para></parameterdescription>
</parameteritem>
<parameteritem>
<parameternamelist>
<parametername>callback_id</parametername>
</parameternamelist>
<parameterdescription>
<para>A pointer to an unique callback identifier that can be used to remove the callback.</para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A <ref refid="group__error_1gab1b09622035af18ab20ed4fd3b61dd46" kindref="member">qdb_error_t</ref> code indicating success or failure.</para></simplesect>
<simplesect kind="see"><para><ref refid="group__log_1ga27259bcef89d32c184a9e03fc0f157ce" kindref="member">qdb_log_callback</ref>, <ref refid="group__log_1gaa1404d7ab69eee1c3db61a35fc5b7ba9" kindref="member">qdb_log_remove_callback</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" line="109" column="1"/>
      </memberdef>
      <memberdef kind="function" id="group__log_1gaa1404d7ab69eee1c3db61a35fc5b7ba9" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__attr_1ga008cbf050a89152ec67d33e534cd3012" kindref="member">QDB_API_LINKAGE</ref> <ref refid="group__error_1ga365e768c3ca0f6387d8798eb98c40443" kindref="member">qdb_error_t</ref></type>
        <definition>QDB_API_LINKAGE qdb_error_t qdb_log_remove_callback</definition>
        <argsstring>(qdb_log_callback_id callback_id)</argsstring>
        <name>qdb_log_remove_callback</name>
        <param>
          <type><ref refid="group__log_1ga6a72d356408c58332b03af73a52c84d6" kindref="member">qdb_log_callback_id</ref></type>
          <declname>callback_id</declname>
        </param>
        <briefdescription>
<para>Removes a previously added log callback. </para>        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>callback_id</parametername>
</parameternamelist>
<parameterdescription>
<para>The identifier set by <ref refid="group__log_1gaf028af10a73cc15f971101ca007bb7c4" kindref="member">qdb_log_add_callback</ref> that will determine which callback to remove.</para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="return"><para>A <ref refid="group__error_1gab1b09622035af18ab20ed4fd3b61dd46" kindref="member">qdb_error_t</ref> code indicating success or failure.</para></simplesect>
<simplesect kind="see"><para><ref refid="group__log_1ga27259bcef89d32c184a9e03fc0f157ce" kindref="member">qdb_log_callback</ref>, <ref refid="group__log_1gaf028af10a73cc15f971101ca007bb7c4" kindref="member">qdb_log_add_callback</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" line="122" column="1"/>
      </memberdef>
      <memberdef kind="function" id="group__log_1ga0df1edeb2182e52b562e5e0cb0d60bf8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__attr_1ga008cbf050a89152ec67d33e534cd3012" kindref="member">QDB_API_LINKAGE</ref> int</type>
        <definition>QDB_API_LINKAGE int qdb_log_option_is_sync</definition>
        <argsstring>(void)</argsstring>
        <name>qdb_log_option_is_sync</name>
        <param>
          <type>void</type>
        </param>
        <briefdescription>
<para>Indicates if logs are synchronized for each API call (disabled by default). </para>        </briefdescription>
        <detaileddescription>
<para><simplesect kind="return"><para>1 if logs are flushed before returning from each API call, 0 otherwise.</para></simplesect>
<simplesect kind="warning"><para>This function is still under development. Performance and compatibility are not guaranteed. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" line="133" column="1"/>
      </memberdef>
      <memberdef kind="function" id="group__log_1ga1dcab217491408d41286e118644c1005" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="group__attr_1ga008cbf050a89152ec67d33e534cd3012" kindref="member">QDB_API_LINKAGE</ref> void</type>
        <definition>QDB_API_LINKAGE void qdb_log_option_set_sync</definition>
        <argsstring>(int sync_logger)</argsstring>
        <name>qdb_log_option_set_sync</name>
        <param>
          <type>int</type>
          <declname>sync_logger</declname>
        </param>
        <briefdescription>
<para>Set logs to be synchronous for each API call (disabled by default). </para>        </briefdescription>
        <detaileddescription>
<para><parameterlist kind="param"><parameteritem>
<parameternamelist>
<parametername>sync_logger</parametername>
</parameternamelist>
<parameterdescription>
<para>1 if logs must be flushed before returning from each API call, 0 otherwise.</para></parameterdescription>
</parameteritem>
</parameterlist>
<simplesect kind="warning"><para>This function is still under development. Performance and compatibility are not guaranteed. </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" line="145" column="1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="enum">
      <memberdef kind="enum" id="group__log_1gae0666863f2369cd07dbd9fdf350c8cd6" prot="public" static="no">
        <name>qdb_log_level_t</name>
        <enumvalue id="log_8h_1gae0666863f2369cd07dbd9fdf350c8cd6a2d904e792153b67d549a21feaa3d4c44" prot="public">
          <name>qdb_log_detailed</name>
          <initializer>= 100</initializer>
          <briefdescription>
<para>Log everything. Very verbose. </para>          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="log_8h_1gae0666863f2369cd07dbd9fdf350c8cd6ad1008f1d0dcd305a098b86a27ee39f50" prot="public">
          <name>qdb_log_debug</name>
          <initializer>= 200</initializer>
          <briefdescription>
<para>Log debug level messages and below. </para>          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="log_8h_1gae0666863f2369cd07dbd9fdf350c8cd6a7a09d97eaf9beb3725a7b267f5a5e2fb" prot="public">
          <name>qdb_log_info</name>
          <initializer>= 300</initializer>
          <briefdescription>
<para>Log information level messages and below. </para>          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="log_8h_1gae0666863f2369cd07dbd9fdf350c8cd6a293192e62cca3326d9df8aac91a1e027" prot="public">
          <name>qdb_log_warning</name>
          <initializer>= 400</initializer>
          <briefdescription>
<para>Log warning level messages and below. </para>          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="log_8h_1gae0666863f2369cd07dbd9fdf350c8cd6aad6c7f5bca14b2e27d8bf909eabc1bd3" prot="public">
          <name>qdb_log_error</name>
          <initializer>= 500</initializer>
          <briefdescription>
<para>Log error level messages and below. </para>          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <enumvalue id="log_8h_1gae0666863f2369cd07dbd9fdf350c8cd6a2f06b74a0d684535fe526435f3849bf4" prot="public">
          <name>qdb_log_panic</name>
          <initializer>= 600</initializer>
          <briefdescription>
<para>Log panic level messages and below. Very terse. </para>          </briefdescription>
          <detaileddescription>
          </detaileddescription>
        </enumvalue>
        <briefdescription>
<para>An enumeration of log level. </para>        </briefdescription>
        <detaileddescription>
<para><simplesect kind="see"><para><ref refid="group__client_1gaa86900c81459a8d60b9b7b042371fa1e" kindref="member">qdb_open</ref> </para><simplesectsep/><para><ref refid="group__log_1ga27259bcef89d32c184a9e03fc0f157ce" kindref="member">qdb_log_callback</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" line="50" column="1" bodyfile="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" bodystart="49" bodyend="63"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="typedef">
      <memberdef kind="typedef" id="group__log_1ga6a72d356408c58332b03af73a52c84d6" prot="public" static="no">
        <type>size_t</type>
        <definition>qdb_log_callback_id</definition>
        <argsstring></argsstring>
        <name>qdb_log_callback_id</name>
        <briefdescription>
<para>An unique callback identifier returned by <ref refid="group__log_1gaf028af10a73cc15f971101ca007bb7c4" kindref="member">qdb_log_add_callback</ref>. </para>        </briefdescription>
        <detaileddescription>
<para><simplesect kind="see"><para><ref refid="group__log_1gaf028af10a73cc15f971101ca007bb7c4" kindref="member">qdb_log_add_callback</ref>, <ref refid="group__log_1gaa1404d7ab69eee1c3db61a35fc5b7ba9" kindref="member">qdb_log_remove_callback</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" line="71" column="1" bodyfile="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" bodystart="71" bodyend="-1"/>
      </memberdef>
      <memberdef kind="typedef" id="group__log_1ga27259bcef89d32c184a9e03fc0f157ce" prot="public" static="no">
        <type>void(*</type>
        <definition>qdb_log_callback</definition>
        <argsstring>)(qdb_log_level_t, const unsigned long *, unsigned long, unsigned long, const char *, size_t)</argsstring>
        <name>qdb_log_callback</name>
        <briefdescription>
<para>A typedef representing a log callback. </para>        </briefdescription>
        <detaileddescription>
<para><simplesect kind="see"><para><ref refid="group__log_1gaf028af10a73cc15f971101ca007bb7c4" kindref="member">qdb_log_add_callback</ref>, <ref refid="group__log_1gaa1404d7ab69eee1c3db61a35fc5b7ba9" kindref="member">qdb_log_remove_callback</ref> </para></simplesect>
</para>        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" line="78" column="1" bodyfile="/mnt/resource/TeamCity/work/3d07d6036e644765/api/include/qdb/log.h" bodystart="78" bodyend="-1"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
  </compounddef>
</doxygen>
