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