#include <eggdrop/eggdrop.h>
Go to the source code of this file.
Functions | |
void | logging_init (void) |
void | logging_shutdown (void) |
int | putlog (int flags, const char *chan, const char *format,...) |
Variables | |
static const char | rcsid [] = "$Id: logging.c,v 1.3 2004-10-17 05:14:06 stdarg Exp $" |
static bind_table_t * | BT_log = NULL |
void logging_init | ( | void | ) |
Definition at line 28 of file logging.c.
References BIND_STACKABLE, bind_table_add(), BTN_LOG, and MATCH_NONE.
Referenced by eggdrop_init().
00029 { 00030 BT_log = bind_table_add(BTN_LOG, 4, "issi", MATCH_NONE, BIND_STACKABLE); /* DDD */ 00031 }
void logging_shutdown | ( | void | ) |
Definition at line 33 of file logging.c.
References bind_table_del().
Referenced by eggdrop_shutdown().
00034 { 00035 bind_table_del(BT_log); 00036 }
int putlog | ( | int | flags, | |
const char * | chan, | |||
const char * | format, | |||
... | ||||
) |
Definition at line 38 of file logging.c.
References bind_check(), egg_mvsprintf(), and NULL.
Referenced by _dcc_send(), bind_entry_del(), bind_table_really_del(), botnet_check_direction(), botnet_delete(), botnet_find_min(), botnet_link_failed(), botnet_new(), botnet_shutdown(), cache_rand_cleanup(), channel_load(), channels_writeuserfile(), check_ctcp_ctcr(), check_expired_bans(), check_expired_exempts(), check_expired_invites(), check_global_notice(), check_logsizes(), check_tcl_fil(), cmd_bans(), cmd_cancel(), cmd_chaninfo(), cmd_chanload(), cmd_chansave(), cmd_chanset(), cmd_chdir(), cmd_chinfo(), cmd_desc(), cmd_exempts(), cmd_file_help(), cmd_files(), cmd_filestats(), cmd_hide(), cmd_info(), cmd_invites(), cmd_mkdir(), cmd_mns_chan(), cmd_mns_chrec(), cmd_mns_mask(), cmd_mv_cp(), cmd_optimize(), cmd_pending(), cmd_pls_chan(), cmd_pls_chrec(), cmd_pls_mask(), cmd_pwd(), cmd_reget_get(), cmd_rm(), cmd_rmdir(), cmd_stats(), cmd_stick_yn(), cmd_unhide(), compress_to_file(), config_save(), connect_to_next_server(), convert_old_db(), convert_old_files(), core_init(), core_restart(), core_secondly(), core_shutdown(), core_shutdown_or_restart(), dcc_accept_send(), dcc_files(), dcc_files_pass(), do_dcc_send(), do_link(), egg_reconnect(), eof_dcc_files(), fatal(), filedb_open(), filedb_update(), files_ls(), filesys_close(), filesys_DCC_CHAT(), filesys_dcc_send(), free_channel(), got311(), got432(), got433(), got435(), got437(), got438(), got451(), got_chat_request(), got_handshake(), got_hup(), got_nlinked(), got_passreq(), got_quit(), got_term(), got_thisbot(), got_who(), goterror(), gotmsg(), gotnotice(), gotwall(), idx_on_eof(), idx_on_read(), init_uptime(), initudef(), irc_on_read(), js_to_c_var(), Log(), log_error(), log_error_message(), logfile_cycle(), main(), module_load(), module_really_unload(), module_unload(), my_eggvar_set(), my_link_var(), my_load_script(), oldbotnet_on_eof(), oldbotnet_on_read(), on_proxy_set(), on_putlog(), party_addlog(), party_save(), partyline_on_command(), pythonscript_LTX_start(), raw_dcc_resend_send(), script_bind(), script_load(), script_putlog(), script_putloglev(), sending_login(), server_config_save(), server_on_connect(), server_on_eof(), server_parse_input(), sockbuf_shutdown(), terminal_init(), terminal_shutdown(), tout_dcc_files_pass(), try_next_nick(), u_addmask(), uncompress_to_file(), user_load(), and write_channels().
00039 { 00040 va_list args; 00041 char *ptr, buf[1024]; 00042 int len; 00043 00044 va_start(args, format); 00045 ptr = egg_mvsprintf(buf, sizeof(buf), &len, format, args); 00046 va_end(args); 00047 bind_check(BT_log, NULL, NULL, flags, chan, ptr, len); 00048 if (ptr != buf) free(ptr); 00049 return(len); 00050 }
bind_table_t* BT_log = NULL [static] |
const char rcsid[] = "$Id: logging.c,v 1.3 2004-10-17 05:14:06 stdarg Exp $" [static] |