Author: Bleep <tomh@inxpress.net>
[ircu2.10.12-pk.git] / include / ircd_log.h
1 /* - Internet Relay Chat, include/ircd_log.h
2  *   Copyright (C) 1999 Thomas Helvey
3  *
4  *   This program is free software; you can redistribute it and/or modify
5  *   it under the terms of the GNU General Public License as published by
6  *   the Free Software Foundation; either version 1, or (at your option)
7  *   any later version.
8  *
9  *   This program is distributed in the hope that it will be useful,
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *   GNU General Public License for more details.
13  *
14  *   You should have received a copy of the GNU General Public License
15  *   along with this program; if not, write to the Free Software
16  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  *
18  *
19  * $Id$
20  */
21 #ifndef INCLUDED_ircd_log_h
22 #define INCLUDED_ircd_log_h
23
24 struct Client;
25
26 enum LogLevel {
27   L_CRIT,
28   L_ERROR,
29   L_WARNING,
30   L_NOTICE,
31   L_TRACE,
32   L_INFO,
33   L_DEBUG,
34   L_LAST_LEVEL
35 };
36
37 extern void open_log(const char* process_name);
38 extern void close_log(void);
39 extern void set_log_level(int level);
40 extern int  get_log_level(void);
41 extern void ircd_log(int priority, const char* fmt, ...);
42
43 extern void ircd_log_kill(const struct Client* victim,
44                           const struct Client* killer,
45                           const char*          inpath,
46                           const char*          path);
47
48 #endif /* INCLUDED_ircd_log_h */