summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/src/log.h
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2015-12-31 02:44:44 -0500
committerMaxim Biro <nurupo.contributions@gmail.com>2015-12-31 02:44:44 -0500
commit8c812f534175d43d93e022af49f0441cfca0ea0d (patch)
tree9e4b6387eac1c35c6e5c260c974ea366163369be /other/bootstrap_daemon/src/log.h
parentc50781a2b7d0ab56acb31b8f79df2e69f9f74b8b (diff)
Make daemon use the new log code
"log" is a reserved name (log from math.h), so it got changed into write_log.
Diffstat (limited to 'other/bootstrap_daemon/src/log.h')
-rw-r--r--other/bootstrap_daemon/src/log.h6
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
27typedef enum LOGGER_BACKEND { 29typedef 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);
49bool close_log(); 51bool 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 */
58bool log(LOG_LEVEL level, const char *format, ...); 60bool write_log(LOG_LEVEL level, const char *format, ...);
59 61
60 62
61#endif // LOG_H 63#endif // LOG_H