summaryrefslogtreecommitdiffstats
path: root/loader2/log.h
blob: 48e64c2f15a44bd68a6094f75e332c1efaf21684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _LOG_H_
#define _LOG_H_

#include <stdio.h>

#define DEBUGLVL 10
#define INFO     20
#define WARNING  30
#define ERROR    40
#define CRITICAL 50

void logMessage(int level, const char * s, ...)
	__attribute__ ((format (printf, 2, 3)));
void openLog(int useLocal);
void closeLog(void);
void setLogLevel(int minLevel);
int getLogLevel(void);

#endif /* _LOG_H_ */