su_default_log.c File Reference


Detailed Description

Default debug log object.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Fri Feb 23 17:30:46 2001 ppessi

#include <stdio.h>
#include <stdarg.h>
#include <sofia-sip/su_log.h>
#include <sofia-sip/su_debug.h>

Include dependency graph for su_default_log.c:


Variables

char const SOFIA_DEBUG []
 Environment variable determining the default debug log level.
su_log_t su_log_default [1]
 Default debug log.

Variable Documentation

SOFIA_DEBUG

Environment variable determining the default debug log level.

The SOFIA_DEBUG environment variable is used to determine the default debug logging level. The normal level is 3.

See also:
<su_debug.h>, su_log_global

su_log_t su_log_default[1]

Default debug log.

If a source module does not define a log object, the output from su_log() function or SU_DEBUG_X() macros use this log object. Also, if a log function references log object with NULL pointer, the su_log_default object is used.

If output from another log object is not redirected with su_log_redirect(), the output can be redirected via this log object.

If the logging level of a log object is not set with su_log_set_level(), or the environment variable directing its level is not set, the log level from the su_log_default object is used.

The level of su_log_default is set using SOFIA_DEBUG environment variable.


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