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

SLogfile Class Reference

Class for handling logfile operations. More...

#include <log.h>

List of all members.

Public Member Functions

 SLogfile (const char *fname)
 SLogfile (const SLogfile &x)
 SLogfile (const char *fname, const char *fnamew)
void flush ()
 Flush output.

int log (UserList *sender, interp::services_cmd_id cmd, const char *target, u_int32_t flags=0, const char *extra=nullFmtHack,...) __attribute__((format(printf
 Normal log entry.

int logw (UserList *sender, interp::services_cmd_id cmd, const char *target, u_int32_t flags=0, const char *extra=nullFmtHack,...) __attribute__((format(printf
 Working log only.

int logx (UserList *sender, int, interp::services_cmd_id cmd, const char *target, u_int32_t flags=0, const char *extra=nullFmtHack, va_list ap=NULL)
 Create a new log entry in the file.


Private Attributes

FILE * fp
 Log file pointer.

FILE * fpw
 Log file pointer.

char * logFileName
char * logwFileName
char fp_noclose
char fpw_noclose


Detailed Description

Class for handling logfile operations.

Definition at line 81 of file log.h.


Member Function Documentation

int SLogfile::log UserList sender,
interp::services_cmd_id  cmd,
const char *  target,
u_int32_t  flags = 0,
const char *  extra = nullFmtHack,
... 
 

Normal log entry.

Parameters:
Pointer to nick item who caused event/command or a null pointer
cmd command id number of type #interp::services_cmd_id
flags Additional logging flags (ex: LOGF_NORMAL)
Returns:
0 on success, -1 on failure

Definition at line 82 of file log.cc.

References logx().

Referenced by expireChans(), IpcType::logMessage(), and IpcType::makeMessage().


The documentation for this class was generated from the following files:
Generated at Sat Oct 25 20:56:13 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.