struct log_listener

Overview

Log message listener More…

#include <logger_listener.h>

struct log_listener {
    // fields

    char name[LOG_MAX_LISTENER_NAME];
    char url[LOG_MAX_LISTENER_URL];
    char runid[LOG_MAX_LISTENER_URL];
    listener_state state;
    bool need_retry;
    struct timeval next_tv;
    int interval;
    bool allow_stop;
    CURL* curl_handle;
    msg_buffer buffer;
    size_t buffer_size;
    size_t buffers_num;
    struct curl_slist* headers;
    te_dbuf buffer_in;
    te_string buffer_out;
    bool trailing_slash;
};

Detailed Documentation

Log message listener

Fields

char name[LOG_MAX_LISTENER_NAME]

Name

char url[LOG_MAX_LISTENER_URL]

URL

char runid[LOG_MAX_LISTENER_URL]

Run ID

listener_state state

Current state

bool need_retry

The last HTTP request failed

struct timeval next_tv

Timestamp of the next dump

int interval

Time interval between dumps, seconds

bool allow_stop

The listener is allowed to stop TE

CURL* curl_handle

File to dump to

msg_buffer buffer

Message buffer

size_t buffer_size

Virtual buffer size

size_t buffers_num

Number of virtual message buffers

struct curl_slist* headers

HTTP headers for CURL requests

te_dbuf buffer_in

Buffer for HTTP responses

te_string buffer_out

Buffer for outgoing data

bool trailing_slash

Whether to add a trailing slash to URLs (for Django compatibility)