summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-27 20:56:28 -0400
committerAdam <Adam@anope.org>2010-08-27 20:56:28 -0400
commitc2ddecc2b1dbc9d055166bdf296da2e4536f74f6 (patch)
tree9b98582630a2debab628e23d4d796885f50ada74 /include/services.h
parent73fb94c55344b6ad788c925bf13325236402891f (diff)
Added a new logging system
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h41
1 files changed, 10 insertions, 31 deletions
diff --git a/include/services.h b/include/services.h
index 2cda56a31..a0c701b95 100644
--- a/include/services.h
+++ b/include/services.h
@@ -181,6 +181,7 @@ extern "C" void __pfnBkCheck() {}
/* Pull in the various bits of STL */
#include <iostream>
+#include <fstream>
#include <sstream>
#include <string>
#include <map>
@@ -253,6 +254,14 @@ class CoreException : public std::exception
}
};
+class FatalException : public CoreException
+{
+ public:
+ FatalException(const Anope::string &reason = "") : CoreException(reason) { }
+
+ virtual ~FatalException() throw() { }
+};
+
class ModuleException : public CoreException
{
public:
@@ -939,6 +948,7 @@ class ServerConfig;
#include "operserv.h"
#include "mail.h"
#include "servers.h"
+#include "logger.h"
#include "config.h"
class CoreExport IRCDProto
@@ -1039,10 +1049,6 @@ class CoreExport IRCDProto
virtual void SetAutoIdentificationToken(User *u) { }
};
-class IRCDTS6Proto : public IRCDProto
-{
-};
-
/*************************************************************************/
struct Uplink
@@ -1055,33 +1061,6 @@ struct Uplink
Uplink(const Anope::string &_host, int _port, const Anope::string &_password, bool _ipv6) : host(_host), port(_port), password(_password), ipv6(_ipv6) { }
};
-enum LogLevel
-{
- LOG_NORMAL,
- LOG_TERMINAL,
- LOG_DEBUG,
- LOG_DEBUG_2,
- LOG_DEBUG_3,
- LOG_DEBUG_4
-};
-
-class CoreExport Alog
-{
- private:
- std::stringstream buf;
- LogLevel Level;
- public:
- Alog(LogLevel val = LOG_NORMAL);
- ~Alog();
- template<typename T> Alog &operator<<(T val)
- {
- buf << val;
- return *this;
- }
-};
-
-/*************************************************************************/
-
#include "timers.h"
/** Timer for colliding nicks to force people off of nicknames