diff options
Diffstat (limited to 'other/bootstrap_daemon/src/log.h')
-rw-r--r-- | other/bootstrap_daemon/src/log.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/other/bootstrap_daemon/src/log.h b/other/bootstrap_daemon/src/log.h index 7e5dce99..b97d3733 100644 --- a/other/bootstrap_daemon/src/log.h +++ b/other/bootstrap_daemon/src/log.h | |||
@@ -24,6 +24,8 @@ | |||
24 | #ifndef LOG_H | 24 | #ifndef LOG_H |
25 | #define LOG_H | 25 | #define LOG_H |
26 | 26 | ||
27 | #include <stdbool.h> | ||
28 | |||
27 | typedef enum LOGGER_BACKEND { | 29 | typedef enum LOGGER_BACKEND { |
28 | LOGGER_BACKEND_SYSLOG, | 30 | LOGGER_BACKEND_SYSLOG, |
29 | LOGGER_BACKEND_STDOUT | 31 | LOGGER_BACKEND_STDOUT |
@@ -49,13 +51,13 @@ bool open_log(LOGGER_BACKEND backend); | |||
49 | bool close_log(); | 51 | bool close_log(); |
50 | 52 | ||
51 | /** | 53 | /** |
52 | * Logs a message. | 54 | * Writes a message to the log. |
53 | * @param level Log level to use. | 55 | * @param level Log level to use. |
54 | * @param format printf-like format string. | 56 | * @param format printf-like format string. |
55 | * @param ... Zero or more arguments, similar to printf function. | 57 | * @param ... Zero or more arguments, similar to printf function. |
56 | * @return true on success, flase if log is closed. | 58 | * @return true on success, flase if log is closed. |
57 | */ | 59 | */ |
58 | bool log(LOG_LEVEL level, const char *format, ...); | 60 | bool write_log(LOG_LEVEL level, const char *format, ...); |
59 | 61 | ||
60 | 62 | ||
61 | #endif // LOG_H | 63 | #endif // LOG_H |