Mercurial > pidgin.yaz
diff src/server.c @ 7431:643cbc9a6035
[gaim-migrate @ 8036]
This is good enough for CVS. This is new logging. It centers around the
highly modular "GaimLogLogger," which controls how to write the log. Currently
I only have the plain text logger. I wrote the beginning of an XML logger, but
decided I didn't think it was that great an idea. Plugins can implement loggers
themselves, so you can have, like, an SQL logger or something.
The default logger writes to a file unique to the conversation, and they're saved
on disk in a heirarchical fashion: ~/.gaim/logs/aim/seanegn/robflynn-date.log would
be a conversation I had with Rob on date.
What doesn't work:
System logging
The search button in the log viewer.
Oh, chats probably don't log either, I didn't test.
You can only log in plain text right now.
Obviously, it's not done yet. But you can play around with it, and give it
some love. I'll get back to it tomorrow after school, maybe.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Wed, 05 Nov 2003 06:15:49 +0000 |
parents | ab828b8c3f22 |
children | 08ce2a94d9c7 |
line wrap: on
line diff
--- a/src/server.c Wed Nov 05 00:18:51 2003 +0000 +++ b/src/server.c Wed Nov 05 06:15:49 2003 +0000 @@ -395,10 +395,9 @@ account, state, message); } + /* LOG system_log(log_away, gc, NULL, OPT_LOG_BUDDY_AWAY | OPT_LOG_MY_SIGNON); */ /* New away message... Clear out the record of sent autoresponses */ flush_last_auto_responses(gc); - - system_log(log_away, gc, NULL, OPT_LOG_BUDDY_AWAY | OPT_LOG_MY_SIGNON); } void serv_set_away_all(const char *message) @@ -1121,20 +1120,18 @@ if (!b->idle && idle) { gaim_signal_emit(gaim_blist_get_handle(), "buddy-idle", b); - system_log(log_idle, gc, b, OPT_LOG_BUDDY_IDLE); } else if (b->idle && !idle) { gaim_signal_emit(gaim_blist_get_handle(), "buddy-unidle", b); - system_log(log_unidle, gc, b, OPT_LOG_BUDDY_IDLE); } gaim_blist_update_buddy_idle(b, idle); gaim_blist_update_buddy_evil(b, evil); - +/* LOG if ((b->uc & UC_UNAVAILABLE) && !(type & UC_UNAVAILABLE)) system_log(log_back, gc, b, OPT_LOG_BUDDY_AWAY); else if (!(b->uc & UC_UNAVAILABLE) && (type & UC_UNAVAILABLE)) system_log(log_away, gc, b, OPT_LOG_BUDDY_AWAY); - +*/ gaim_blist_update_buddy_status(b, type); if (loggedin) { @@ -1161,7 +1158,7 @@ } } gaim_sound_play_event(GAIM_SOUND_BUDDY_ARRIVE); - system_log(log_signon, gc, b, OPT_LOG_BUDDY_SIGNON); + // LOG system_log(log_signon, gc, b, OPT_LOG_BUDDY_SIGNON); } } else { if (GAIM_BUDDY_IS_ONLINE(b)) { @@ -1187,7 +1184,7 @@ } serv_got_typing_stopped(gc, name); /* obviously not typing */ gaim_sound_play_event(GAIM_SOUND_BUDDY_LEAVE); - system_log(log_signoff, gc, b, OPT_LOG_BUDDY_SIGNON); + // LOG system_log(log_signoff, gc, b, OPT_LOG_BUDDY_SIGNON); } } @@ -1362,7 +1359,7 @@ gaim_conv_chat_set_id(chat, id); - /* TODO Move this to UI logging code! */ + /* TODO Move this to UI logging code! LOG if (gaim_prefs_get_bool("/gaim/gtk/logging/log_chats") || find_log_info(gaim_conversation_get_name(conv))) { @@ -1388,6 +1385,7 @@ } free(filename); } + */ gaim_conv_window_show(gaim_conversation_get_window(conv)); gaim_conv_window_switch_conversation(gaim_conversation_get_window(conv),