]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/log.h
new Function: LogDebug()
[ngircd-alex.git] / src / ngircd / log.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * Please read the file COPYING, README and AUTHORS for more information.
10  *
11  * $Id: log.h,v 1.19 2006/02/08 17:33:28 fw Exp $
12  *
13  * Logging functions (header)
14  */
15
16
17 #ifndef __log_h__
18 #define __log_h__
19
20
21 #ifdef SYSLOG
22 #       include <syslog.h>
23 #else
24 #       define LOG_EMERG 0
25 #       define LOG_ALERT 1
26 #       define LOG_CRIT 2
27 #       define LOG_ERR 3
28 #       define LOG_WARNING 4
29 #       define LOG_NOTICE 5
30 #       define LOG_INFO 6
31 #       define LOG_DEBUG 7
32 #endif
33
34
35 #define LOG_snotice 1024
36
37
38 GLOBAL void Log_Init PARAMS(( bool Daemon_Mode ));
39 GLOBAL void Log_Exit PARAMS(( void ));
40
41 GLOBAL void Log PARAMS(( int Level, const char *Format, ... ));
42 GLOBAL void LogDebug PARAMS(( const char *Format, ... ));
43
44 GLOBAL void Log_Init_Resolver PARAMS(( void ));
45 GLOBAL void Log_Exit_Resolver PARAMS(( void ));
46
47 GLOBAL void Log_Resolver PARAMS(( const int Level, const char *Format, ... ));
48
49 #ifdef DEBUG
50 GLOBAL void Log_InitErrorfile PARAMS(( void ));
51 #endif
52
53
54 #endif
55
56
57 /* -eof- */