aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputs/TcpLog.h
blob: 65cd41b173d69f5e7661fa41aaa32cc4c485197a (plain)
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