:orphan: .. index:: pair: struct; log_msg .. _doxid-structlog__msg: struct log_msg ============== .. toctree:: :hidden: Overview ~~~~~~~~ Structure that keeps log message in an universal format :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct log_msg { // fields struct obstack* :ref:`obstk`; unsigned :ref:`id`; uint32_t :ref:`flags`; char* :ref:`entity`; char* :ref:`user`; uint32_t :ref:`timestamp`[2]; :ref:`te_log_level` :ref:`level`; const char* :ref:`level_str`; char* :ref:`fmt_str`; :ref:`msg_arg`* :ref:`args`; :ref:`msg_arg`* :ref:`cur_arg`; int :ref:`args_count`; char* :ref:`txt_msg`; int :ref:`nest_lvl`; }; .. _details-structlog__msg: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Structure that keeps log message in an universal format Fields ------ .. index:: pair: variable; obstk .. _doxid-structlog__msg_1a00a7209486c2bf9e0e3ba94b6b729277: .. ref-code-block:: cpp :class: doxyrest-title-code-block struct obstack* obstk Internal field: Obstack for the message .. index:: pair: variable; id .. _doxid-structlog__msg_1a014d89c00b78be43514e8cad83568f7c: .. ref-code-block:: cpp :class: doxyrest-title-code-block unsigned id ID of the log message, which currently defines which test is logged this message .. index:: pair: variable; flags .. _doxid-structlog__msg_1a5b161d3d88d1592200370dbef3c67516: .. ref-code-block:: cpp :class: doxyrest-title-code-block uint32_t flags Message flags .. index:: pair: variable; entity .. _doxid-structlog__msg_1aeabc150371d79bdbf57635971cbce857: .. ref-code-block:: cpp :class: doxyrest-title-code-block char* entity Entity name of the message .. index:: pair: variable; user .. _doxid-structlog__msg_1ae40eec49fae939305eab1bdb9491c475: .. ref-code-block:: cpp :class: doxyrest-title-code-block char* user User name of the message .. index:: pair: variable; timestamp .. _doxid-structlog__msg_1a8dc482e65c00b911f98a0ab49c442d5e: .. ref-code-block:: cpp :class: doxyrest-title-code-block uint32_t timestamp[2] Timestamp value .. index:: pair: variable; level .. _doxid-structlog__msg_1ae1a652c378ae24f0289ed16e4e9a109c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`te_log_level` level Log level .. index:: pair: variable; level_str .. _doxid-structlog__msg_1a57007eb0c58903850869a3ba66cbda9a: .. ref-code-block:: cpp :class: doxyrest-title-code-block const char* level_str Log level in string format .. index:: pair: variable; fmt_str .. _doxid-structlog__msg_1a9993d85651bbf340ac93a825c5039a6b: .. ref-code-block:: cpp :class: doxyrest-title-code-block char* fmt_str Raw format string .. index:: pair: variable; args .. _doxid-structlog__msg_1a2f7d5da53bf556150038bdf3622107bd: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`msg_arg`* args List of arguments for format string .. index:: pair: variable; cur_arg .. _doxid-structlog__msg_1a6985d66fcfa1f71ad15d630e84101cdd: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`msg_arg`* cur_arg Internal field: used by get_next_arg function .. index:: pair: variable; args_count .. _doxid-structlog__msg_1ac4ea52f567d4f13618ff87497c7fed1a: .. ref-code-block:: cpp :class: doxyrest-title-code-block int args_count Total number of the arguments .. index:: pair: variable; txt_msg .. _doxid-structlog__msg_1a4e41a0167e4144c32ab212213bee5c33: .. ref-code-block:: cpp :class: doxyrest-title-code-block char* txt_msg Processed fmt_str + args .. index:: pair: variable; nest_lvl .. _doxid-structlog__msg_1a0d425cffaaa347243c8a4ed964f03f31: .. ref-code-block:: cpp :class: doxyrest-title-code-block int nest_lvl Nesting level