Defines

sofia-sip/su_debug.h File Reference

SU debugging macros. More...

#include <sofia-sip/su_log.h>
Include dependency graph for su_debug.h:

Go to the source code of this file.

Defines

#define SU_DEBUG_H
 Defined when <sofia-sip/su_debug.h> has been included.
#define SU_DEBUG_MAX
 The maximum debugging level.
#define SU_DEBUG_0(x)
 Log messages at level 0.
#define SU_LERROR(s)
 Log C library errors.
#define SU_LSERROR(s)
 Log socket errors.
#define SU_DEBUG_1(x)
 Log messages at level 1.
#define SU_DEBUG_2(x)
 Log messages at level 2.
#define SU_DEBUG_3(x)
 Log messages at level 3.
#define SU_DEBUG_4(x)
 Log messages at level 4.
#define SU_DEBUG_5(x)
 Log messages at level 5.
#define SU_DEBUG_6(x)
 Log messages at level 6.
#define SU_DEBUG_7(x)
 Log messages at level 7.
#define SU_DEBUG_8(x)
 Log messages at level 8.
#define SU_DEBUG_9(x)
 Log messages at level 9.

Detailed Description

SU debugging macros.

The logging levels and macros to use are defined as follows:

These macros are used to log with module-specific levels. The SU_LOG macro is redefined with a pointer to a module-specific su_log_t structure, e.g., "iptsec_debug.h".

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Tue Feb 8 10:06:33 2000 ppessi
See also:
Debugging Logs, su_llog(), su_vllog(), su_log_t,

Define Documentation

#define SU_DEBUG_0 (   x  ) 

Log messages at level 0.

Fatal errors and panic messages should be logged at level 0.

See also:
su_llog(), su_vllog(), su_log_t, Debugging Logs
#define SU_DEBUG_1 (   x  ) 

Log messages at level 1.

Critical errors and minimal progress at subsystem level should be logged at level 1.

See also:
su_llog(), su_vllog(), su_log_t, Debugging Logs
#define SU_DEBUG_2 (   x  ) 

Log messages at level 2.

Non-critical errors should be logged at level 2.

See also:
su_llog(), su_vllog(), su_log_t, Debugging Logs
#define SU_DEBUG_3 (   x  ) 

Log messages at level 3.

Warnings and progress messages should be logged at level 3.

See also:
su_llog(), su_vllog(), su_log_t, Debugging Logs
#define SU_DEBUG_4 (   x  ) 

Log messages at level 4.

#define SU_DEBUG_5 (   x  ) 

Log messages at level 5.

Signaling protocol actions (incoming packets, etc.) should be logged at level 5.

See also:
su_llog(), su_vllog(), su_log_t, Debugging Logs
#define SU_DEBUG_6 (   x  ) 

Log messages at level 6.

#define SU_DEBUG_7 (   x  ) 

Log messages at level 7.

Media protocol actions (incoming packets, etc) should be logged at level 7.

See also:
su_llog(), su_vllog(), su_log_t, Debugging Logs
#define SU_DEBUG_8 (   x  ) 

Log messages at level 8.

#define SU_DEBUG_9 (   x  ) 

Log messages at level 9.

Entering/exiting functions, very verbatim progress should be logged at level 9.

See also:
su_llog(), su_vllog(), su_log_t, Debugging Logs
#define SU_DEBUG_MAX

The maximum debugging level.

#define SU_LERROR (   s  ) 

Log C library errors.

#define SU_LSERROR (   s  ) 

Log socket errors.

 All Data Structures Files Functions Variables Typedefs Enumerator Defines

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