From b0183733ef4c6f08ef8c7b73155268e54ca3f152 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 22 Dec 2013 16:11:43 +0100 Subject: InputBuffered know how to split frames --- src/inputs/TcpLog.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/inputs/TcpLog.h (limited to 'src/inputs/TcpLog.h') 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 + +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 + -- cgit v1.2.3