Author: Bleep <tomh@inxpress.net>
[ircu2.10.12-pk.git] / include / ircd_log.h
diff --git a/include/ircd_log.h b/include/ircd_log.h
new file mode 100644 (file)
index 0000000..64294b2
--- /dev/null
@@ -0,0 +1,48 @@
+/* - Internet Relay Chat, include/ircd_log.h
+ *   Copyright (C) 1999 Thomas Helvey
+ *
+ *   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 1, 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ *
+ * $Id$
+ */
+#ifndef INCLUDED_ircd_log_h
+#define INCLUDED_ircd_log_h
+
+struct Client;
+
+enum LogLevel {
+  L_CRIT,
+  L_ERROR,
+  L_WARNING,
+  L_NOTICE,
+  L_TRACE,
+  L_INFO,
+  L_DEBUG,
+  L_LAST_LEVEL
+};
+
+extern void open_log(const char* process_name);
+extern void close_log(void);
+extern void set_log_level(int level);
+extern int  get_log_level(void);
+extern void ircd_log(int priority, const char* fmt, ...);
+
+extern void ircd_log_kill(const struct Client* victim,
+                          const struct Client* killer,
+                          const char*          inpath,
+                          const char*          path);
+
+#endif /* INCLUDED_ircd_log_h */