comparison src/log.c @ 5211:0241d6b6702d

[gaim-migrate @ 5581] Wrote a new debugging API, and of course core/ui split it. Debug statements can now have debug levels and categories, for future filtering of stuff, and color highlighting. It's nifty, m'kay? committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 26 Apr 2003 06:46:08 +0000
parents fefad67de2c7
children 1f901484599d
comparison
equal deleted inserted replaced
5210:39bb2a35f8d9 5211:0241d6b6702d
200 200
201 g_snprintf(log_all_file, 256, "%s" G_DIR_SEPARATOR_S "logs" G_DIR_SEPARATOR_S "%s", gaim_dir, name); 201 g_snprintf(log_all_file, 256, "%s" G_DIR_SEPARATOR_S "logs" G_DIR_SEPARATOR_S "%s", gaim_dir, name);
202 if (stat(log_all_file, &st) < 0) 202 if (stat(log_all_file, &st) < 0)
203 *flag = 1; 203 *flag = 1;
204 204
205 debug_printf("Logging to: \"%s\"\n", log_all_file); 205 gaim_debug(GAIM_DEBUG_INFO, "log", "Logging to: \"%s\"\n", log_all_file);
206 206
207 fd = fopen(log_all_file, "a"); 207 fd = fopen(log_all_file, "a");
208 208
209 g_free(buf); 209 g_free(buf);
210 g_free(buf2); 210 g_free(buf2);