log.c File Reference

#include "stdinc.h"
#include "server.h"

Go to the source code of this file.

Functions

void open_log (void)
void close_logs (void)
void alog (int TYPE, char *fmt,...)
void close_log (void)
void sendto_logchan (char *fmt,...)
void sendto_console (char *fmt,...)
void Log (char *fmt,...)

Variables

char * LogType []
static unsigned long curday = 0

Function Documentation

void alog ( int  TYPE,
char *  fmt,
  ... 
)
void close_log ( void   ) 

Definition at line 125 of file log.c.

References logfd.

Referenced by AtExit().

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 *  fmt,
  ... 
)

Definition at line 158 of file log.c.

Referenced by load_protocol().

void sendto_logchan ( char *  fmt,
  ... 
)

Variable Documentation

unsigned long curday = 0 [static]

Definition at line 23 of file log.c.

Referenced by open_log().

char* LogType[]
Initial value:
 {
        "Info",     
        "Debug",    
        "Debug 2",  
        "Error",    
        "Critical", 
        "Event",    
        "Link",     
        "LogUser",  
        "LogChan",  
        "LogIO",    
        "Module",   
        "Debug 3",   
        "Backtrace", 
        "Socket", 
        "Command", 
        0
}

Definition at line 4 of file log.c.

Referenced by alog().

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