Mercurial > pidgin
comparison src/connection.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 | bf630f7dfdcd |
children | 1b8261f374ea |
comparison
equal
deleted
inserted
replaced
7430:783eea64614c | 7431:643cbc9a6035 |
---|---|
237 | 237 |
238 connections = g_list_remove(connections, gc); | 238 connections = g_list_remove(connections, gc); |
239 | 239 |
240 gaim_connection_set_state(gc, GAIM_DISCONNECTED); | 240 gaim_connection_set_state(gc, GAIM_DISCONNECTED); |
241 | 241 |
242 /* LOG system_log(log_signoff, gc, NULL, | |
243 OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); */ | |
242 gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc); | 244 gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc); |
243 | 245 |
244 system_log(log_signoff, gc, NULL, | |
245 OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); | |
246 | 246 |
247 /* | 247 /* |
248 * XXX This is a hack! Remove this and replace it with a better event | 248 * XXX This is a hack! Remove this and replace it with a better event |
249 * notification system. | 249 * notification system. |
250 */ | 250 */ |
326 GaimConvWindow *win = (GaimConvWindow *)wins->data; | 326 GaimConvWindow *win = (GaimConvWindow *)wins->data; |
327 gaim_conversation_update(gaim_conv_window_get_conversation_at(win, 0), | 327 gaim_conversation_update(gaim_conv_window_get_conversation_at(win, 0), |
328 GAIM_CONV_ACCOUNT_ONLINE); | 328 GAIM_CONV_ACCOUNT_ONLINE); |
329 } | 329 } |
330 | 330 |
331 /* LOG system_log(log_signon, gc, NULL, | |
332 OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); */ | |
331 gaim_signal_emit(gaim_connections_get_handle(), "signed-on", gc); | 333 gaim_signal_emit(gaim_connections_get_handle(), "signed-on", gc); |
332 | |
333 system_log(log_signon, gc, NULL, | |
334 OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); | |
335 | 334 |
336 #if 0 | 335 #if 0 |
337 /* away option given? */ | 336 /* away option given? */ |
338 if (opt_away) { | 337 if (opt_away) { |
339 away_on_login(opt_away_arg); | 338 away_on_login(opt_away_arg); |