log.h File Reference

Go to the source code of this file.

Defines

#define LOG_INFO   0
#define DEBUG   1
#define DEBUG_2   2
#define DEBUG3   11
#define LOG_DEBUG   1
#define LOG_DEBUG2   2
#define LOG_DEBUG3   11
#define LOG_ERROR   3
#define LOG_FATAL   4
#define LOG_EVENT   5
#define LOG_LINK   6
#define LOG_USER   7
#define LOG_CHAN   8
#define LOG_IO   9
#define LOG_MODULE   10
#define LOG_SOCKET   13
#define LOG_COMMAND   14
#define LOG_BACKTRACE   12

Functions

void open_log (void)
void close_logs (void)
void Log (char *,...)
void alog (int, char *,...)
void sendto_logchan (char *,...)
void sendto_console (char *,...)
void CleanUpLogs (int, char **)

Variables

int uselogchan
static FILE * logfd

Define Documentation

#define DEBUG   1

Debug log types

Definition at line 23 of file log.h.

Referenced by alog().

#define DEBUG3   11

Definition at line 25 of file log.h.

Referenced by AddCmd(), AddHelp(), AddHelpExt(), alog(), Event(), and HandleServCmd().

#define DEBUG_2   2

Definition at line 24 of file log.h.

Referenced by alog().

#define LOG_BACKTRACE   12

Backtraceing

Definition at line 56 of file log.h.

Referenced by GenCore().

#define LOG_CHAN   8

Definition at line 46 of file log.h.

#define LOG_COMMAND   14

Definition at line 50 of file log.h.

#define LOG_DEBUG   1

Definition at line 27 of file log.h.

Referenced by add_access_flag(), add_access_host(), find_access_flag(), new_access(), and set_access_flag().

#define LOG_DEBUG2   2
#define LOG_DEBUG3   11

Definition at line 29 of file log.h.

Referenced by find_uid(), find_user(), parse(), and receive().

#define LOG_ERROR   3
#define LOG_EVENT   5

Standard log types

Definition at line 43 of file log.h.

Referenced by destroy_event_list().

#define LOG_FATAL   4

Definition at line 36 of file log.h.

Referenced by load_protocol().

#define LOG_INFO   0

Definition at line 17 of file log.h.

#define LOG_IO   9

Definition at line 47 of file log.h.

#define LOG_LINK   6

Definition at line 44 of file log.h.

#define LOG_MODULE   10

Definition at line 48 of file log.h.

Referenced by module_close(), and run_mod_que().

#define LOG_SOCKET   13

Definition at line 49 of file log.h.

Referenced by OneTimeAround().

#define LOG_USER   7

Definition at line 45 of file log.h.

Referenced by AddUser(), exit_one_user(), exit_user(), and NewNick().


Function Documentation

void alog ( int  ,
char *  ,
  ... 
)
void CleanUpLogs ( int  ,
char **   
)
void close_logs ( void   ) 

Definition at line 69 of file log.c.

References logfd.

void Log ( char *  fmt,
  ... 
)

Log - This function logs to our log file, as well as sends to logchan... This doesnt do any implicit checks, and will rely on the user to know what he/she is doing.

Parameters:
TYPE - The log level/type
fmt - Formatted VA_ARG strings, or standard parameters.
Returns:
void

Definition at line 187 of file log.c.

References alog(), and sendto_logchan().

Referenced by new_serv().

void open_log ( void   ) 

Init Function - Called when server starts.

Definition at line 33 of file log.c.

References CfgSettings, curday, DPATH, logfd, LPATH, and Conf::network.

Referenced by alog(), and Run().

void sendto_console ( char *  ,
  ... 
)

Definition at line 158 of file log.c.

Referenced by load_protocol().

void sendto_logchan ( char *  ,
  ... 
)

Variable Documentation

FILE* logfd [static]

Definition at line 7 of file log.h.

Referenced by alog(), close_log(), close_logs(), and open_log().

Definition at line 5 of file log.h.

Referenced by main(), sendto_logchan(), and uplink_cleanup().

Generated on Mon Jul 19 21:53:05 2010 for Omega Security Services by  doxygen 1.6.3