#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 |
| void alog | ( | int | TYPE, | |
| char * | fmt, | |||
| ... | ||||
| ) |
Definition at line 83 of file log.c.
References debug, DEBUG, DEBUG3, DEBUG_2, logfd, LogType, nofork, open_log(), and ServerTime.
Referenced by add_access_flag(), add_access_host(), add_protocol(), AddCmd(), AddEventEx(), AddHelp(), AddHelpExt(), AddTimedEvent(), AddUser(), Core_Construct(), dest_all_threads(), destroy_event_list(), ev_connectuplink(), Event(), exit_one_user(), exit_user(), find_access_flag(), find_uid(), find_user(), GenCore(), generate_p10_uid(), GetLine(), HandleClientCmds(), HandleServCmd(), KickFromChannel(), Listen(), load_modules(), load_protocol(), Log(), module_close(), new_access(), new_chan(), NewNick(), OneTimeAround(), parse(), receive(), run_mod_que(), send_line(), sendto_socket(), set_access_flag(), sock_getbyte(), sock_readline(), spawn_thread(), and thread_cancle().
| void close_log | ( | void | ) |
| 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.
| TYPE | - The log level/type | |
| fmt | - Formatted VA_ARG strings, or standard parameters. |
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.
| void sendto_console | ( | char * | fmt, | |
| ... | ||||
| ) |
Definition at line 158 of file log.c.
Referenced by load_protocol().
| void sendto_logchan | ( | char * | fmt, | |
| ... | ||||
| ) |
Definition at line 132 of file log.c.
References IRCd, logchan, IRCDProto::p10, RUNNING, s_Guardian, send_line(), sync_state, IRCDProto::ts6, and uselogchan.
Referenced by AddUser(), exit_one_user(), exit_serv(), exit_user(), HandleClientCmds(), Log(), new_serv(), NewNick(), read_usermode_string(), and Rehash().
unsigned long curday = 0 [static] |
Definition at line 23 of file log.c.
Referenced by open_log().
1.6.3