summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/services.h b/include/services.h
index eb9fdc34d..7325685f5 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1162,6 +1162,32 @@ struct Uplink {
}
};
+enum LogLevel
+{
+ LOG_NORMAL,
+ LOG_DEBUG,
+ LOG_DEBUG_2,
+ LOG_DEBUG_3,
+ LOG_DEBUG_4
+};
+
+class CoreExport Alog
+{
+ private:
+ std::stringstream buf;
+ bool logit;
+ public:
+ Alog(LogLevel val = LOG_NORMAL);
+ ~Alog();
+ template<typename T> Alog& operator<<(T val)
+ {
+ if (logit)
+ buf << val;
+ return *this;
+ }
+};
+
+
class CoreExport Anope
{
public: