See tport.docs for more detailed description of tport interface.
#include "config.h"
#include "tport_internal.h"
#include <sofia-sip/string0.h>
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#include <errno.h>
#include <limits.h>
Include dependency graph for tport_logging.c:
Functions | |
void | tport_open_log (tport_master_t *mr, tagi_t *tags) |
Initialize logging. | |
void | tport_stamp (tport_t const *self, msg_t *msg, char stamp[128], char const *what, size_t n, char const *via, su_time_t now) |
Create log stamp. | |
void | tport_dump_iovec (tport_t const *self, msg_t *msg, size_t n, su_iovec_t const iov[], size_t iovused, char const *what, char const *how) |
Dump the data from the iovec. | |
void | tport_log_msg (tport_t *self, msg_t *msg, char const *what, char const *via, su_time_t now) |
Log the message. | |
Variables | |
char const | TPORT_LOG [] |
Environment variable determining if parsed message contents are logged. | |
char const | TPORT_DUMP [] |
Environment variable for transport data dump. | |
char const | TPORT_DEBUG [] |
Environment variable determining the debug log level for tport module. | |
su_log_t | tport_log [] |
Debug log for tport module. |
Environment variable determining the debug log level for tport module.
The TPORT_DEBUG environment variable is used to determine the debug logging level for tport module. The default level is 3.
Environment variable for transport data dump.
The received and sent data is dumped to the file specified by TPORT_DUMP environment variable. This can be used to save message traces and help hairy debugging tasks.
Debug log for tport module.
The tport_log is the log object used by tport module. The level of tport_log is set using TPORT_DEBUG environment variable.
Environment variable determining if parsed message contents are logged.
If the TPORT_LOG environment variable is set, the tport module logs the contents of parsed messages. This eases debugging the signaling greatly.