libt2n: (gerd) fixes, new logging concept (not working yet)
[libt2n] / src / connection.hxx
index 633798b..4092fde 100644 (file)
@@ -21,6 +21,9 @@
 
 #include <string>
 
+#include "types.hxx"
+
+
 namespace libt2n
 {
 
@@ -33,7 +36,7 @@ class connection
 
     protected:
         connection()
-        { closed=false; }
+            { closed=false; }
 
         std::string buffer;
 
@@ -43,6 +46,8 @@ class connection
 
         virtual void real_write(const std::string& data)=0;
 
+        virtual std::ostream* get_logstream(log_level_values level)=0;
+
     public:
         virtual ~connection()
             { close(); }