/[svn]/ircd-hybrid-7.2/src/s_log.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/s_log.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 580 by lusky, Sun Oct 2 21:05:51 2005 UTC revision 581 by michael, Tue May 2 07:50:39 2006 UTC
# Line 114  write_log(const char *message) Line 114  write_log(const char *message)
114    
115  #ifdef _WIN32  #ifdef _WIN32
116    nbytes = snprintf(buf, sizeof(buf), "[%s] %s\r\n",    nbytes = snprintf(buf, sizeof(buf), "[%s] %s\r\n",
117                        smalldate(CurrentTime), message);
118  #else  #else
119    nbytes = snprintf(buf, sizeof(buf), "[%s] %s\n",    nbytes = snprintf(buf, sizeof(buf), "[%s] %s\n",
 #endif  
120                      smalldate(CurrentTime), message);                      smalldate(CurrentTime), message);
121    #endif
122    fbputs(buf, logFile, nbytes);    fbputs(buf, logFile, nbytes);
123  }  }
124        
# Line 205  log_user_exit(struct Client *source_p) Line 206  log_user_exit(struct Client *source_p)
206  #ifdef SYSLOG_USERS  #ifdef SYSLOG_USERS
207    if (IsClient(source_p))    if (IsClient(source_p))
208    {    {
209      ilog(L_INFO, "%s (%3ld:%02ld:%02ld): %s!%s@%s %llu/%llu\n",      ilog(L_INFO, "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu",
210           myctime(source_p->firsttime),           myctime(source_p->firsttime), on_for / 3600,
211            (signed long) on_for / 3600,           (on_for % 3600)/60, on_for % 60,
212            (signed long) (on_for % 3600)/60,           source_p->name, source_p->username, source_p->host,
213            (signed long) on_for % 60,           source_p->localClient->send.bytes>>10,
214            source_p->name, source_p->username, source_p->host,           source_p->localClient->recv.bytes>>10);
           source_p->localClient->send.bytes>>10,  
           source_p->localClient->recv.bytes>>10);  
215      }      }
216  #else  #else
217    {    {
# Line 239  log_user_exit(struct Client *source_p) Line 238  log_user_exit(struct Client *source_p)
238        if (user_log_fb != NULL)        if (user_log_fb != NULL)
239        {        {
240          size_t nbytes = ircsprintf(linebuf,          size_t nbytes = ircsprintf(linebuf,
241                     "%s (%3ld:%02ld:%02ld): %s!%s@%s %llu/%llu\n",                     "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu\n",
242                     myctime(source_p->firsttime),                     myctime(source_p->firsttime),
243                     (signed long) on_for / 3600,                     on_for / 3600,
244                     (signed long) (on_for % 3600)/60,                     (on_for % 3600)/60,
245                     (signed long) on_for % 60,                     on_for % 60,
246                     source_p->name, source_p->username, source_p->host,                     source_p->name, source_p->username, source_p->host,
247                     source_p->localClient->send.bytes>>10,                     source_p->localClient->send.bytes>>10,
248                     source_p->localClient->recv.bytes>>10);                     source_p->localClient->recv.bytes>>10);

Legend:
Removed from v.580  
changed lines
  Added in v.581

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28