summaryrefslogtreecommitdiff
path: root/lib/zlog.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-03-24 13:57:11 -0400
committerMark Stapp <mjs@voltanet.io>2021-04-20 12:48:06 -0400
commit42ddefe8166dc5fc3514a96d5da683fa7a308a87 (patch)
tree652ba198f863d14d894fdd07273599a0d95dd03e /lib/zlog.h
parent7408af70f56e72cddee11c0c864aec39588cd3a4 (diff)
libs: add api to enable immediate output of zlog
The log module buffers outgoing messages by default; add an api to turn that off, and emit messages immediately. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/zlog.h')
-rw-r--r--lib/zlog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/zlog.h b/lib/zlog.h
index 66d8f1e5d7..2ef4173605 100644
--- a/lib/zlog.h
+++ b/lib/zlog.h
@@ -249,6 +249,9 @@ extern void zlog_tls_buffer_init(void);
extern void zlog_tls_buffer_flush(void);
extern void zlog_tls_buffer_fini(void);
+/* Enable or disable 'immediate' output - default is to buffer messages. */
+extern void zlog_set_immediate(bool set_p);
+
#ifdef __cplusplus
}
#endif