2 f4ade537 2001-12-11 alex * ngIRCd -- The Next Generation IRC Daemon
3 1547f76c 2002-01-02 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
5 c7f07523 2002-12-12 alex * This program is free software; you can redistribute it and/or modify
6 c7f07523 2002-12-12 alex * it under the terms of the GNU General Public License as published by
7 c7f07523 2002-12-12 alex * the Free Software Foundation; either version 2 of the License, or
8 c7f07523 2002-12-12 alex * (at your option) any later version.
9 c7f07523 2002-12-12 alex * Please read the file COPYING, README and AUTHORS for more information.
11 95375426 2005-02-10 alex * $Id: log.h,v 1.15 2005/02/10 12:49:04 alex Exp $
13 c7f07523 2002-12-12 alex * Logging functions (header)
17 f4ade537 2001-12-11 alex #ifndef __log_h__
18 f4ade537 2001-12-11 alex #define __log_h__
21 c40592d2 2003-12-26 alex #ifdef SYSLOG
22 50352dc9 2001-12-27 alex # include <syslog.h>
24 50352dc9 2001-12-27 alex # define LOG_EMERG 0
25 50352dc9 2001-12-27 alex # define LOG_ALERT 1
26 50352dc9 2001-12-27 alex # define LOG_CRIT 2
27 50352dc9 2001-12-27 alex # define LOG_ERR 3
28 50352dc9 2001-12-27 alex # define LOG_WARNING 4
29 50352dc9 2001-12-27 alex # define LOG_NOTICE 5
30 50352dc9 2001-12-27 alex # define LOG_INFO 6
31 50352dc9 2001-12-27 alex # define LOG_DEBUG 7
35 20a2ffef 2002-03-27 alex #define LOG_snotice 1024
38 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Init PARAMS((VOID ));
39 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Exit PARAMS((VOID ));
41 c2f60abe 2002-05-27 alex GLOBAL VOID Log PARAMS((INT Level, CONST CHAR *Format, ... ));
43 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Init_Resolver PARAMS((VOID ));
44 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Exit_Resolver PARAMS((VOID ));
46 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Resolver PARAMS((CONST INT Level, CONST CHAR *Format, ... ));
48 95375426 2005-02-10 alex #ifdef DEBUG
49 95375426 2005-02-10 alex GLOBAL VOID Log_InitErrorfile PARAMS((VOID ));