Blame


1 f4ade537 2001-12-11 alex /*
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)
4 f4ade537 2001-12-11 alex *
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.
10 f4ade537 2001-12-11 alex *
11 c40592d2 2003-12-26 alex * $Id: log.h,v 1.14 2003/12/26 15:55:07 alex Exp $
12 f4ade537 2001-12-11 alex *
13 c7f07523 2002-12-12 alex * Logging functions (header)
14 f4ade537 2001-12-11 alex */
15 f4ade537 2001-12-11 alex
16 f4ade537 2001-12-11 alex
17 f4ade537 2001-12-11 alex #ifndef __log_h__
18 f4ade537 2001-12-11 alex #define __log_h__
19 f4ade537 2001-12-11 alex
20 f4ade537 2001-12-11 alex
21 c40592d2 2003-12-26 alex #ifdef SYSLOG
22 50352dc9 2001-12-27 alex # include <syslog.h>
23 50352dc9 2001-12-27 alex #else
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
32 50352dc9 2001-12-27 alex #endif
33 f4ade537 2001-12-11 alex
34 f4ade537 2001-12-11 alex
35 20a2ffef 2002-03-27 alex #define LOG_snotice 1024
36 a3231869 2002-03-25 alex
37 a3231869 2002-03-25 alex
38 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Init PARAMS((VOID ));
39 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Exit PARAMS((VOID ));
40 f4ade537 2001-12-11 alex
41 c2f60abe 2002-05-27 alex GLOBAL VOID Log_InitErrorfile PARAMS((VOID ));
42 c2f60abe 2002-05-27 alex GLOBAL VOID Log PARAMS((INT Level, CONST CHAR *Format, ... ));
43 f4ade537 2001-12-11 alex
44 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Init_Resolver PARAMS((VOID ));
45 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Exit_Resolver PARAMS((VOID ));
46 f4ade537 2001-12-11 alex
47 c2f60abe 2002-05-27 alex GLOBAL VOID Log_Resolver PARAMS((CONST INT Level, CONST CHAR *Format, ... ));
48 ec1922ef 2001-12-29 alex
49 ec1922ef 2001-12-29 alex
50 f4ade537 2001-12-11 alex #endif
51 f4ade537 2001-12-11 alex
52 f4ade537 2001-12-11 alex
53 f4ade537 2001-12-11 alex /* -eof- */