Go to the documentation of this file.
65((SU_LOG != NULL && SU_LOG->log_init) == 0 ? 9 : \
66((SU_LOG != NULL && SU_LOG->log_init > 1) ? \
67 SU_LOG->log_level : su_log_default->log_level))
71#define SU_LOG (su_log_default)
76#define VA_NONE "%s",""
78#define SU_DEBUG_DEF(level) \
79 su_inline void su_debug_##level(char const *fmt, ...) \
80 __attribute__ ((__format__ (printf, 1, 2))); \
81 su_inline void su_debug_##level(char const *fmt, ...) \
82 { va_list ap; va_start(ap, fmt); su_vllog(SU_LOG, level, fmt, ap); va_end(ap); }
85#define su_debug_0(_f, ...) su_llog(SU_LOG, 0, _f, __VA_ARGS__)
93#define SU_DEBUG_0(x) (SU_LOG_LEVEL >= 0 ? (su_debug_0 x) : (void)0)
96#define SU_LERROR(s) (su_llog(SU_LOG, 1, "%s: %s\n", (s), strerror(errno)))
98#define SU_LSERROR(s) \
99 (su_llog(SU_LOG, 1, "%s: %s\n", (s), su_strerror(su_errno())))
101#define SU_DEBUG_0(x) ((void)0)
102#define SU_LERROR(s) ((void)0)
103#define SU_LSERROR(s) ((void)0)
108#define su_debug_1(_f, ...) su_llog(SU_LOG, 1, _f, __VA_ARGS__)
118#define SU_DEBUG_1(x) (SU_LOG_LEVEL >= 1 ? (su_debug_1 x) : (void)0)
120#define SU_DEBUG_1(x) (void)1
125#define su_debug_2(_f, ...) su_llog(SU_LOG, 2, _f, __VA_ARGS__)
132#define SU_DEBUG_2(x) (SU_LOG_LEVEL >= 2 ? (su_debug_2 x) : (void)0)
134#define SU_DEBUG_2(x) (void)2
139#define su_debug_3(_f, ...) su_llog(SU_LOG, 3, _f, __VA_ARGS__)
146#define SU_DEBUG_3(x) (SU_LOG_LEVEL >= 3 ? (su_debug_3 x) : (void)0)
148#define SU_DEBUG_3(x) (void)3
153#define su_debug_4(_f, ...) su_llog(SU_LOG, 4, _f, __VA_ARGS__)
155#define SU_DEBUG_4(x) (SU_LOG_LEVEL >= 4 ? (su_debug_4 x) : (void)0)
157#define SU_DEBUG_4(x) (void)4
162#define su_debug_5(_f, ...) su_llog(SU_LOG, 5, _f, __VA_ARGS__)
170#define SU_DEBUG_5(x) (SU_LOG_LEVEL >= 5 ? (su_debug_5 x) : (void)0)
172#define SU_DEBUG_5(x) (void)5
177#define su_debug_6(_f, ...) su_llog(SU_LOG, 6, _f, __VA_ARGS__)
179#define SU_DEBUG_6(x) (SU_LOG_LEVEL >= 6 ? (su_debug_6 x) : (void)0)
181#define SU_DEBUG_6(x) (void)6
186#define su_debug_7(_f, ...) su_llog(SU_LOG, 7, _f, __VA_ARGS__)
193#define SU_DEBUG_7(x) (SU_LOG_LEVEL >= 7 ? (su_debug_7 x) : (void)0)
195#define SU_DEBUG_7(x) (void)7
200#define su_debug_8(_f, ...) su_llog(SU_LOG, 8, _f, __VA_ARGS__)
202#define SU_DEBUG_8(x) (SU_LOG_LEVEL >= 8 ? (su_debug_8 x) : (void)0)
204#define SU_DEBUG_8(x) (void)8
209#define su_debug_9(_f, ...) su_llog(SU_LOG, 9, _f, __VA_ARGS__)
217#define SU_DEBUG_9(x) (SU_LOG_LEVEL >= 9 ? (su_debug_9 x) : (void)0)
219#define SU_DEBUG_9(x) (void)9
Log object.
Definition su_log.h:68
#define SOFIAPUBVAR
SOFIAPUBVAR declares an exported variable.
Definition su_config.h:68
Sofia-SIP 1.13.17 -
Copyright (C) 2006 Nokia Corporation. All rights reserved.
Licensed under the terms of the GNU Lesser General Public License.