From 646ff7d9933b550b65b8377b3fa1b9bd85056cb3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Jun 2019 13:07:21 +0200 Subject: Add ability to specify custom diag_record writer --- libbutl/diagnostics.mxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbutl/diagnostics.mxx') diff --git a/libbutl/diagnostics.mxx b/libbutl/diagnostics.mxx index 43f13ad..c9ade44 100644 --- a/libbutl/diagnostics.mxx +++ b/libbutl/diagnostics.mxx @@ -179,6 +179,11 @@ LIBBUTL_MODEXPORT namespace butl diag_record (const diag_record&) = delete; diag_record& operator= (const diag_record&) = delete; + // Diagnostics writer. The default implementation writes the record text + // to diag_stream. If it is NULL, then the record text is ignored. + // + static void (*writer) (const diag_record&); + protected: #ifdef __cpp_lib_uncaught_exceptions const int uncaught_; -- cgit v1.1