tport_logging.c File Reference


Detailed Description

Logging transported messages.

See tport.docs for more detailed description of tport interface.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>

Martti Mela <Martti.Mela@nokia-email.address.hidden>

Date:
Created: Fri Mar 24 08:45:49 EET 2006 ppessi

#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.

Variable Documentation

TPORT_DEBUG

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.

See also:
<su_debug.h>, tport_log, SOFIA_DEBUG

TPORT_DUMP

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.

See also:
TPORT_LOG, TPORT_DEBUG, tport_log

su_log_t tport_log[]

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.

TPORT_LOG

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.

See also:
TPORT_DUMP, TPORT_DEBUG, tport_log


Sofia-SIP 1.12.6 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.