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 DEBUG3 11 |
Definition at line 25 of file log.h.
Referenced by AddCmd(), AddHelp(), AddHelpExt(), alog(), Event(), and HandleServCmd().
| #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 |
Definition at line 28 of file log.h.
Referenced by find_access_flag(), generate_p10_uid(), KickFromChannel(), parse(), receive(), send_line(), sendto_socket(), and sock_readline().
| #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 |
Errors
Definition at line 35 of file log.h.
Referenced by AddTimedEvent(), dest_all_threads(), ev_connectuplink(), Listen(), send_line(), sendto_socket(), sock_getbyte(), spawn_thread(), and thread_cancle().
| #define LOG_EVENT 5 |
| #define LOG_FATAL 4 |
Definition at line 36 of file log.h.
Referenced by load_protocol().
| #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().
| void alog | ( | int | , | |
| char * | , | |||
| ... | ||||
| ) |
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 CleanUpLogs | ( | int | , | |
| char ** | ||||
| ) |
| 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 * | , | |
| ... | ||||
| ) |
Definition at line 158 of file log.c.
Referenced by load_protocol().
| void sendto_logchan | ( | char * | , | |
| ... | ||||
| ) |
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().
FILE* logfd [static] |
Definition at line 7 of file log.h.
Referenced by alog(), close_log(), close_logs(), and open_log().
| int uselogchan |
Definition at line 5 of file log.h.
Referenced by main(), sendto_logchan(), and uplink_cleanup().
1.6.3