summaryrefslogtreecommitdiff
path: root/server/include/logging.h
blob: 6396ac0792a874f3ee4d1603122847ca952c102f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef MRAT_LOGGING_H
#define MRAT_LOGGING_H

#include <mini-rat.h>

enum LOG_LEVEL {
        LOG_SEVERE,
        LOG_WARNING,
        LOG_INFO,
        LOG_DEBUG,
};

int init_logging(FILE *out_file);
int vlog_msg(int level, const char *fmt, va_list args);
int log_msg(int level, const char *fmt, ...);

void close_logfile(void);

#endif