00001 /* logging.h: header for logging.c 00002 * 00003 * Copyright (C) 2003, 2004 Eggheads Development Team 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 * 00019 * $Id: logging.h,v 1.1 2004-06-21 18:44:20 wingman Exp $ 00020 */ 00021 00022 #ifndef _EGG_LOGGING_H_ 00023 #define _EGG_LOGGING_H_ 00024 00025 #define LOG_MSGS 0x000001 /* m msgs/notice/ctcps */ 00026 #define LOG_PUBLIC 0x000002 /* p public msg/notice/ctcps */ 00027 #define LOG_JOIN 0x000004 /* j channel joins/parts/etc */ 00028 #define LOG_MODES 0x000008 /* k mode changes/kicks/bans */ 00029 #define LOG_CMDS 0x000010 /* c user dcc or msg commands */ 00030 #define LOG_MISC 0x000020 /* o other misc bot things */ 00031 #define LOG_BOTS 0x000040 /* b bot notices */ 00032 #define LOG_RAW 0x000080 /* r raw server stuff coming in */ 00033 #define LOG_FILES 0x000100 /* x file transfer commands and stats */ 00034 #define LOG_LEV1 0x000200 /* 1 user log level */ 00035 #define LOG_LEV2 0x000400 /* 2 user log level */ 00036 #define LOG_LEV3 0x000800 /* 3 user log level */ 00037 #define LOG_LEV4 0x001000 /* 4 user log level */ 00038 #define LOG_LEV5 0x002000 /* 5 user log level */ 00039 #define LOG_LEV6 0x004000 /* 6 user log level */ 00040 #define LOG_LEV7 0x008000 /* 7 user log level */ 00041 #define LOG_LEV8 0x010000 /* 8 user log level */ 00042 #define LOG_SERV 0x020000 /* s server information */ 00043 #define LOG_DEBUG 0x040000 /* d debug */ 00044 #define LOG_WALL 0x080000 /* w wallops */ 00045 #define LOG_SRVOUT 0x100000 /* v server output */ 00046 #define LOG_ERR 0x200000 /* e errors */ 00047 #define LOG_ALL 0xFFFFFF /* (dump to all logfiles) */ 00048 00049 /* Bind table names for logging */ 00050 #define BTN_LOG "log" 00051 00052 extern void logging_init(void); 00053 extern void logging_shutdown(void); 00054 00055 extern int putlog(int flags, const char *chan, const char *format, ...); 00056 00057 #endif /* !_EGG_LOGGING_H_ */