1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 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