summaryrefslogtreecommitdiffstats
path: root/common/eurephia_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/eurephia_log.h')
-rw-r--r--common/eurephia_log.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/common/eurephia_log.h b/common/eurephia_log.h
index 97e58d2..cb83f61 100644
--- a/common/eurephia_log.h
+++ b/common/eurephia_log.h
@@ -31,16 +31,9 @@
#ifndef EUREPHIA_LOG_H_
#define EUREPHIA_LOG_H_
+#include <eurephia_log_struct.h>
#include <eurephia_context.h>
-#define LOG_INFO 1 /**< Informational messages. Log level should be < 5 */
-#define LOG_DEBUG 2 /**< Messages intended when debugging. Only for log level > 10 */
-#define LOG_WARNING 3 /**< Input data or processing revealed unexpected data. Log level never > 2*/
-#define LOG_ERROR 4 /**< API errors but not sever, program can continue to run */
-#define LOG_CRITICAL 5 /**< Operation failed and might have been aborted. Log level always 0 */
-#define LOG_FATAL 6 /**< Operation failed and cannot continue. Log level always < 2 */
-#define LOG_PANIC 7 /**< Action failed an program could not continue to run. Log level always 0 */
-
#ifdef ENABLE_DEBUG
#warning ###### DEBUG LOGGING IS ENABLED - THIS COULD BE A SECURITY ISSUE ######
/**
@@ -60,6 +53,9 @@
#warning ## ##
#warning ##########################################################################################
#endif
+
+int eurephia_log_init(eurephiaCTX *ctx, const char *dest, int loglvl);
+void eurephia_log_close(eurephiaCTX *ctx);
void eurephia_log(eurephiaCTX *ctx, int logdst, int loglvl, const char *fmt, ... );
#endif /* !EUREPHIA_LOG_H_ */