aboutsummaryrefslogtreecommitdiff
path: root/lib/logger/logger.h
blob: 6c9ed7d6c3c9610110c95790ec68c1779690bfc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef LIB_LOGGER_H_SENTRY
#define LIB_LOGGER_H_SENTRY
#ifdef __cplusplus
extern "C" {
#endif

enum logger_lvl {
	log_lvl_info,
	log_lvl_warning,
	log_lvl_err
};

void logger_init(const char *name, int daemon_flag);
void logger_close(void);
void logger_log(enum logger_lvl, const char *format, ...);
void logger_perror(const char *s);

#ifdef __cplusplus
}
#endif
#endif /* LIB_LOGGER_H_SENTRY */