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