tdm_log_enable_color(unsigned int enable)
{
color_enable = enable;
+ TDM_INFO("color_enable: %d", color_enable);
}
EXTERN void
if (str)
enable = (str[0] == '1') ? 1 : 0;
dlog_enable = enable;
+ TDM_INFO("dlog_enable: %d", dlog_enable);
}
EXTERN void
if (str)
level = str[0] - '0';
tdm_log_debug_level = level;
+ TDM_INFO("debug_level: %d", tdm_log_debug_level);
}
EXTERN void
if (str)
level = str[0] - '0';
assert_level = level;
+ TDM_INFO("assert_level: %d", assert_level);
}
EXTERN void
tdm_log_set_path(const char *path)
{
+ TDM_INFO("log_path: %s", path);
+
if (!path) {
if (stdout_fd != -1) {
fflush(stdout);
close(STDOUT_FILENO);
dup2(log_fd, STDOUT_FILENO);
fclose(log_fl);
+ TDM_INFO("log_path: %s done", path);
}
}