diff 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
line wrap: on
line diff
--- a/src/connection.c	Wed Nov 05 00:18:51 2003 +0000
+++ b/src/connection.c	Wed Nov 05 06:15:49 2003 +0000
@@ -239,10 +239,10 @@
 
 		gaim_connection_set_state(gc, GAIM_DISCONNECTED);
 
+		/* LOG	system_log(log_signoff, gc, NULL,
+		   OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); */
 		gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc);
 
-		system_log(log_signoff, gc, NULL,
-				   OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON);
 
 		/*
 		 * XXX This is a hack! Remove this and replace it with a better event
@@ -328,11 +328,10 @@
 									 GAIM_CONV_ACCOUNT_ONLINE);
 		}
 
+		/* LOG system_log(log_signon, gc, NULL,
+		   OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); */
 		gaim_signal_emit(gaim_connections_get_handle(), "signed-on", gc);
 
-		system_log(log_signon, gc, NULL,
-				   OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON);
-
 #if 0
 		/* away option given? */
 		if (opt_away) {