lib/eggdrop/logging.h File Reference

Go to the source code of this file.

Defines

#define LOG_MSGS   0x000001
#define LOG_PUBLIC   0x000002
#define LOG_JOIN   0x000004
#define LOG_MODES   0x000008
#define LOG_CMDS   0x000010
#define LOG_MISC   0x000020
#define LOG_BOTS   0x000040
#define LOG_RAW   0x000080
#define LOG_FILES   0x000100
#define LOG_LEV1   0x000200
#define LOG_LEV2   0x000400
#define LOG_LEV3   0x000800
#define LOG_LEV4   0x001000
#define LOG_LEV5   0x002000
#define LOG_LEV6   0x004000
#define LOG_LEV7   0x008000
#define LOG_LEV8   0x010000
#define LOG_SERV   0x020000
#define LOG_DEBUG   0x040000
#define LOG_WALL   0x080000
#define LOG_SRVOUT   0x100000
#define LOG_ERR   0x200000
#define LOG_ALL   0xFFFFFF
#define BTN_LOG   "log"

Functions

void logging_init (void)
void logging_shutdown (void)
int putlog (int flags, const char *chan, const char *format,...)


Define Documentation

#define BTN_LOG   "log"

Definition at line 50 of file logging.h.

Referenced by logging_init(), partyline_init(), and partyline_shutdown().

#define LOG_ALL   0xFFFFFF

Definition at line 47 of file logging.h.

Referenced by core_init(), core_secondly(), and logfile_add().

#define LOG_BOTS   0x000040

Definition at line 31 of file logging.h.

#define LOG_CMDS   0x000010

#define LOG_DEBUG   0x040000

#define LOG_ERR   0x200000

Definition at line 46 of file logging.h.

#define LOG_FILES   0x000100

#define LOG_JOIN   0x000004

Definition at line 27 of file logging.h.

#define LOG_LEV1   0x000200

Definition at line 34 of file logging.h.

#define LOG_LEV2   0x000400

Definition at line 35 of file logging.h.

#define LOG_LEV3   0x000800

Definition at line 36 of file logging.h.

#define LOG_LEV4   0x001000

Definition at line 37 of file logging.h.

#define LOG_LEV5   0x002000

Definition at line 38 of file logging.h.

#define LOG_LEV6   0x004000

Definition at line 39 of file logging.h.

#define LOG_LEV7   0x008000

Definition at line 40 of file logging.h.

#define LOG_LEV8   0x010000

Definition at line 41 of file logging.h.

#define LOG_MISC   0x000020

#define LOG_MODES   0x000008

Definition at line 28 of file logging.h.

#define LOG_MSGS   0x000001

Definition at line 25 of file logging.h.

Referenced by check_ctcp_ctcr(), check_global_notice(), goterror(), gotmsg(), and gotnotice().

#define LOG_PUBLIC   0x000002

Definition at line 26 of file logging.h.

Referenced by check_ctcp_ctcr(), gotmsg(), and gotnotice().

#define LOG_RAW   0x000080

Definition at line 32 of file logging.h.

Referenced by server_parse_input().

#define LOG_SERV   0x020000

#define LOG_SRVOUT   0x100000

Definition at line 45 of file logging.h.

#define LOG_WALL   0x080000

Definition at line 44 of file logging.h.

Referenced by gotwall().


Function Documentation

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 }


Generated on Sun Nov 30 18:43:34 2008 for eggdrop1.9 by  doxygen 1.5.6