summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-02-25 15:15:10 -0500
committerpommicket <pommicket@gmail.com>2025-02-25 15:16:09 -0500
commitb6656786caa1b5247e251e63d15f3173bcf3d26f (patch)
treea5c3c722dfe535a1372096ec21ed3e5353bce8ab /log.h
parent5626363c05bd379047cbe102feaceb18a04a738c (diff)
logging
Diffstat (limited to 'log.h')
-rw-r--r--log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/log.h b/log.h
index b739837..ee638de 100644
--- a/log.h
+++ b/log.h
@@ -12,5 +12,7 @@ void log_init(const char *out);
void log_message(int severity, const char *fmt, va_list args);
void log_error(PRINTF_FORMAT_STRING const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2);
void log_warning(PRINTF_FORMAT_STRING const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2);
+/// Like `perror`, but outputs to log and allows format string.
+void log_perror(PRINTF_FORMAT_STRING const char *fmt, ...) ATTRIBUTE_PRINTF(1, 2);
#endif