log.c File Reference

#include "services.h"
#include "pseudo.h"

Go to the source code of this file.

Functions

void alog (const char *fmt,...)
void close_log (void)
void fatal (const char *fmt,...)
void fatal_perror (const char *fmt,...)
void fatal_sockerror (const char *fmt,...)
char * log_gettimestamp (void)
void log_perror (const char *fmt,...)
int open_log (void)


Function Documentation

void alog ( const char *  fmt,
  ... 
)

Definition at line 154 of file log.c.

References BUFSIZE, debug, findchan(), log_gettimestamp(), logchan, LogChannel, nofork, privmsg(), s_GlobalNoticer, and vsnprintf.

void close_log ( void   ) 

Definition at line 110 of file log.c.

void fatal ( const char *  fmt,
  ... 
)

Definition at line 225 of file log.c.

References anope_cmd_global(), log_gettimestamp(), ModuleRunTimeDirCleanUp(), nofork, servsock, and vsnprintf.

void fatal_perror ( const char *  fmt,
  ... 
)

Definition at line 260 of file log.c.

References anope_cmd_global(), log_gettimestamp(), ModuleRunTimeDirCleanUp(), nofork, servsock, strerror(), and vsnprintf.

void fatal_sockerror ( const char *  fmt,
  ... 
)

Definition at line 302 of file log.c.

References ano_sockgeterr, ano_sockstrerror, anope_cmd_global(), log_gettimestamp(), ModuleRunTimeDirCleanUp(), servsock, strerror(), and vsnprintf.

char* log_gettimestamp ( void   ) 

Definition at line 121 of file log.c.

References debug, and snprintf().

Referenced by alog(), fatal(), fatal_perror(), fatal_sockerror(), and log_perror().

void log_perror ( const char *  fmt,
  ... 
)

Definition at line 191 of file log.c.

References BUFSIZE, log_gettimestamp(), nofork, strerror(), and vsnprintf.

int open_log ( void   ) 

Definition at line 90 of file log.c.


Generated on Sun Dec 30 09:26:56 2007 for Anope by  doxygen 1.5.1-20070107