aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputs/TcpLog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inputs/TcpLog.h')
-rw-r--r--src/inputs/TcpLog.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/inputs/TcpLog.h b/src/inputs/TcpLog.h
new file mode 100644
index 0000000..65cd41b
--- /dev/null
+++ b/src/inputs/TcpLog.h
@@ -0,0 +1,23 @@
+#ifndef _T_
+#define _T_
+
+#include <cstdio>
+
+using namespace std;
+
+class TcpLog
+{
+ public:
+ const static int WARNING=1;
+ const static int ERR=2;
+ const static int NOTICE=3;
+ const static int CRIT=4;
+
+ void print(const int priority, const char *format, ...)
+ {
+ fprintf(stderr, "%s\n", format);
+ }
+};
+
+#endif
+