libt2n: (gerd) fixes, new logging concept (not working yet)
[libt2n] / src / socket_handler.hxx
index 8ea65a1..32fbbf4 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef __LIBT2N_SOCKET_HANDLER
 #define __LIBT2N_SOCKET_HANDLER
 
+#include <iostream>
+
 #include "types.hxx"
 
 namespace libt2n
@@ -45,10 +47,8 @@ class socket_handler
 
         void set_socket_options(int sock);
 
-        void log(log_level_values level, const std::string& message)
-            { log(level,message.c_str()); }
-        virtual void log(log_level_values level, const char* message)
-            { return; }
+        virtual std::ostream* get_logstream(log_level_values level)
+            { return NULL; }
 
         void socket_write(const std::string& data);