aboutsummaryrefslogtreecommitdiff
path: root/libbutl/diagnostics.mxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/diagnostics.mxx')
-rw-r--r--libbutl/diagnostics.mxx5
1 files changed, 5 insertions, 0 deletions
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_;