:orphan: .. index:: pair: struct; log_listener .. _doxid-structlog__listener: struct log_listener =================== .. toctree:: :hidden: Overview ~~~~~~~~ Log message listener :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct log_listener { // fields char :ref:`name`[LOG_MAX_LISTENER_NAME]; char :ref:`url`[LOG_MAX_LISTENER_URL]; char :ref:`runid`[LOG_MAX_LISTENER_URL]; :ref:`listener_state` :ref:`state`; bool :ref:`need_retry`; struct timeval :ref:`next_tv`; int :ref:`interval`; bool :ref:`allow_stop`; CURL* :ref:`curl_handle`; :ref:`msg_buffer` :ref:`buffer`; size_t :ref:`buffer_size`; size_t :ref:`buffers_num`; struct curl_slist* :ref:`headers`; :ref:`te_dbuf` :ref:`buffer_in`; :ref:`te_string` :ref:`buffer_out`; bool :ref:`trailing_slash`; }; .. _details-structlog__listener: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Log message listener Fields ------ .. index:: pair: variable; name .. _doxid-structlog__listener_1a8f09c64871ea5b5fbdd15dd9f024ec59: .. ref-code-block:: cpp :class: doxyrest-title-code-block char name[LOG_MAX_LISTENER_NAME] Name .. index:: pair: variable; url .. _doxid-structlog__listener_1a75e885a460cc9d2b14cdad89819eb2ab: .. ref-code-block:: cpp :class: doxyrest-title-code-block char url[LOG_MAX_LISTENER_URL] URL .. index:: pair: variable; runid .. _doxid-structlog__listener_1aa1cbb1803df5ab5c7ceb9792167ebb8c: .. ref-code-block:: cpp :class: doxyrest-title-code-block char runid[LOG_MAX_LISTENER_URL] Run ID .. index:: pair: variable; state .. _doxid-structlog__listener_1ace32ee15d20ebc254124b017bd855e27: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`listener_state` state Current state .. index:: pair: variable; need_retry .. _doxid-structlog__listener_1a6d3b421c74e0409a2f3801fff478db20: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool need_retry The last HTTP request failed .. index:: pair: variable; next_tv .. _doxid-structlog__listener_1a9ccf9eb97a70aa01a4418f8df59c701c: .. ref-code-block:: cpp :class: doxyrest-title-code-block struct timeval next_tv Timestamp of the next dump .. index:: pair: variable; interval .. _doxid-structlog__listener_1ae3b85f5a8e2393d083101134c2208022: .. ref-code-block:: cpp :class: doxyrest-title-code-block int interval Time interval between dumps, seconds .. index:: pair: variable; allow_stop .. _doxid-structlog__listener_1a24d21a353e789d89e473a954bb3e014c: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool allow_stop The listener is allowed to stop TE .. index:: pair: variable; curl_handle .. _doxid-structlog__listener_1a73d583dab731e838ba0a6f47c17d1cb7: .. ref-code-block:: cpp :class: doxyrest-title-code-block CURL* curl_handle File to dump to .. index:: pair: variable; buffer .. _doxid-structlog__listener_1afe8939ad9b906fdb5017c157200a5a7b: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`msg_buffer` buffer Message buffer .. index:: pair: variable; buffer_size .. _doxid-structlog__listener_1aef9346b42c0ffebc8057a18473165896: .. ref-code-block:: cpp :class: doxyrest-title-code-block size_t buffer_size Virtual buffer size .. index:: pair: variable; buffers_num .. _doxid-structlog__listener_1ab866a9612538438cc51b6051cae4ca2d: .. ref-code-block:: cpp :class: doxyrest-title-code-block size_t buffers_num Number of virtual message buffers .. index:: pair: variable; headers .. _doxid-structlog__listener_1aa4006a19caca40756b9ef83d7e580283: .. ref-code-block:: cpp :class: doxyrest-title-code-block struct curl_slist* headers HTTP headers for CURL requests .. index:: pair: variable; buffer_in .. _doxid-structlog__listener_1adb32f264494e4562c18a673ac4e4aab0: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`te_dbuf` buffer_in Buffer for HTTP responses .. index:: pair: variable; buffer_out .. _doxid-structlog__listener_1a5ffc964b371427f2872bc1e30f7325ab: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`te_string` buffer_out Buffer for outgoing data .. index:: pair: variable; trailing_slash .. _doxid-structlog__listener_1a14b0b83cb80394c7c90ac32304753b12: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool trailing_slash Whether to add a trailing slash to URLs (for Django compatibility)