summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h
index abf2a72c1..0088facc8 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -118,6 +118,27 @@ class Logger final
;
/**
+ * Enters a message in the log. The message will be timestamped.
+ */
+ void assert(const char *const log_text, ...) A_NONNULL(2)
+#ifdef __GNUC__
+#ifdef __OpenBSD__
+
+ __attribute__((__format__(printf, 2, 3)))
+#else // __OpenBSD__
+
+#ifdef ENABLE_CILKPLUS
+ __attribute__((__format__(gnu_printf, 1, 2)))
+#else // ENABLE_CILKPLUS
+
+ __attribute__((__format__(gnu_printf, 2, 3)))
+#endif // ENABLE_CILKPLUS
+
+#endif // __OpenBSD__
+#endif // __GNUC__
+ ;
+
+ /**
* Enters a message in the log (thread safe).
*/
void log_r(const char *const log_text, ...) A_NONNULL(2)