Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

log.cc File Reference

Logging module. More...

#include "services.h"
#include "log.h"

Go to the source code of this file.

Defines

#define NUM_LOG_ENTRIES   100
 Number of log entries to keep in the debug log.

#define LOG_ENTRY_SIZE   200
 Size of a debug log entry.


Functions

void dlogInit (void)
 Initialize debug logging at bootup.

void dlogEntry (char *format,...)
 Store a log entry in the debug-log stack.

void dlogDump (FILE *fp)
 Services crash or request, dump debug log entries to file.

void logDump (FILE *fp, char *format,...)
 Dump a single log item directly to file.

const char * fullhost1 (const UserList *nick)
 Get a user's full host mask in a NUL-terminated string form.


Variables

const char * nullFmtHack = (const char *)0
 Used to default NULL format without triggering compiler warnings.

char * log_entry [NUM_LOG_ENTRIES]
 The log entries.

int next_entry
 Next entry goes where?

int num_entries
 Number entries present?


Detailed Description

Logging module.

This module implements the basic services command/event logging system.

Author:
Michael Graff

James Hess

Date:
1997, 2001
Id
log.cc,v 1.2 2003/08/23 01:48:39 Mysid Exp

Definition in file log.cc.


Function Documentation

const char* fullhost1 const UserList nick  ) 
 

Get a user's full host mask in a NUL-terminated string form.

Returns:
Pointer to _static_ buffer to a user's full hostname

Definition at line 260 of file log.cc.

References _userlist::host, _userlist::nick, and _userlist::user.


Generated at Sat Oct 25 20:56:11 2003 for Services using Doxygen.
Services Copyr. 1996-2001 Chip Norkus, Max Byrd, Greg Poma, Michael Graff, James Hess, Dafydd James. All rights reserved See LICENSE for licensing information.