comparison src/main.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 42ef0c41cefb
children d3400dadc594
comparison
equal deleted inserted replaced
7430:783eea64614c 7431:643cbc9a6035
499 gaim_blist_set_ui_ops(gaim_gtk_blist_get_ui_ops()); 499 gaim_blist_set_ui_ops(gaim_gtk_blist_get_ui_ops());
500 gaim_notify_set_ui_ops(gaim_gtk_notify_get_ui_ops()); 500 gaim_notify_set_ui_ops(gaim_gtk_notify_get_ui_ops());
501 gaim_privacy_set_ui_ops(gaim_gtk_privacy_get_ui_ops()); 501 gaim_privacy_set_ui_ops(gaim_gtk_privacy_get_ui_ops());
502 gaim_request_set_ui_ops(gaim_gtk_request_get_ui_ops()); 502 gaim_request_set_ui_ops(gaim_gtk_request_get_ui_ops());
503 gaim_sound_set_ui_ops(gaim_gtk_sound_get_ui_ops()); 503 gaim_sound_set_ui_ops(gaim_gtk_sound_get_ui_ops());
504 gaim_connections_set_ui_ops(gaim_gtk_connections_get_ui_ops()); 504 gaim_connections_set_ui_ops(gaim_gtk_connections_get_ui_ops());
505 505
506 gaim_gtk_prefs_init(); 506 gaim_gtk_prefs_init();
507 gaim_gtk_blist_init(); 507 gaim_gtk_blist_init();
508 gaim_gtk_conversations_init(); 508 gaim_gtk_conversations_init();
509 gaim_gtk_pounces_init(); 509 gaim_gtk_pounces_init();
515 gaim_gtk_quit(void) 515 gaim_gtk_quit(void)
516 { 516 {
517 /* XXX? */ 517 /* XXX? */
518 518
519 /* captain's log, stardate... */ 519 /* captain's log, stardate... */
520 system_log(log_quit, NULL, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); 520 //LOG system_log(log_quit, NULL, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON);
521 521
522 #ifdef USE_SM 522 #ifdef USE_SM
523 /* unplug */ 523 /* unplug */
524 session_end(); 524 session_end();
525 #endif 525 #endif
843 843
844 gaim_plugins_probe(NULL); 844 gaim_plugins_probe(NULL);
845 845
846 gaim_prefs_load(); 846 gaim_prefs_load();
847 847
848
849 /* we only read ~/.gaimrc (load_prefs()) if there is no accounts.xml 848 /* we only read ~/.gaimrc (load_prefs()) if there is no accounts.xml
850 * since prefs.xml existed alongside ~/.gaim in 0.64 */ 849 * since prefs.xml existed alongside ~/.gaim in 0.64 */
851 if (!gaim_accounts_load()) { 850 if (!gaim_accounts_load()) {
852 load_prefs(); 851 load_prefs();
853 gaim_prefs_sync(); 852 gaim_prefs_sync();