You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
813 B
28 lines
813 B
/* ---------------------------------------------------------------------------- |
|
* C-Report |
|
* ---------------------------------------------------------------------------- |
|
* Author : Markus Koch <markus@notsyncing.net> |
|
* Contributors : None |
|
* License : Mozilla Public License (MPL) Version 2 |
|
* ---------------------------------------------------------------------------- |
|
*/ |
|
|
|
|
|
#ifndef REPORT_H |
|
#define REPORT_H |
|
|
|
#include <errno.h> |
|
|
|
enum log_level {LL_CRITICAL = 0, |
|
LL_ERROR, |
|
LL_WARNING, |
|
LL_INFO, |
|
LL_DEBUG, |
|
LL_NOISY, |
|
LL_COUNT}; |
|
int should_report(enum log_level log_level); |
|
enum log_level report(enum log_level log_level, const char *format, ...); |
|
void set_log_level(enum log_level log_level); |
|
enum log_level get_log_level(); |
|
|
|
#endif // REPORT_H
|
|
|