Mercurial > pidgin.yaz
comparison src/idle.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 | 70d5122bc3ff |
children | 08ce2a94d9c7 |
comparison
equal
deleted
inserted
replaced
7430:783eea64614c | 7431:643cbc9a6035 |
---|---|
153 if (idle_time >= IDLEMARK && !gc->is_idle) { | 153 if (idle_time >= IDLEMARK && !gc->is_idle) { |
154 gaim_debug(GAIM_DEBUG_INFO, "idle", "Setting %s idle %d seconds\n", | 154 gaim_debug(GAIM_DEBUG_INFO, "idle", "Setting %s idle %d seconds\n", |
155 gaim_account_get_username(account), idle_time); | 155 gaim_account_get_username(account), idle_time); |
156 serv_set_idle(gc, idle_time); | 156 serv_set_idle(gc, idle_time); |
157 gc->is_idle = 1; | 157 gc->is_idle = 1; |
158 system_log(log_idle, gc, NULL, OPT_LOG_BUDDY_IDLE | OPT_LOG_MY_SIGNON); | 158 // LOG system_log(log_idle, gc, NULL, OPT_LOG_BUDDY_IDLE | OPT_LOG_MY_SIGNON); |
159 } else if (idle_time < IDLEMARK && gc->is_idle) { | 159 } else if (idle_time < IDLEMARK && gc->is_idle) { |
160 gaim_debug(GAIM_DEBUG_INFO, "idle", "Setting %s unidle\n", | 160 gaim_debug(GAIM_DEBUG_INFO, "idle", "Setting %s unidle\n", |
161 gaim_account_get_username(account)); | 161 gaim_account_get_username(account)); |
162 serv_touch_idle(gc); | 162 serv_touch_idle(gc); |
163 system_log(log_unidle, gc, NULL, OPT_LOG_BUDDY_IDLE | OPT_LOG_MY_SIGNON); | 163 // LOG system_log(log_unidle, gc, NULL, OPT_LOG_BUDDY_IDLE | OPT_LOG_MY_SIGNON); |
164 } | 164 } |
165 | 165 |
166 return TRUE; | 166 return TRUE; |
167 | 167 |
168 } | 168 } |