aboutsummaryrefslogtreecommitdiff
path: root/libbutl/diagnostics.mxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-06-28 13:07:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-06-28 13:07:21 +0200
commit646ff7d9933b550b65b8377b3fa1b9bd85056cb3 (patch)
tree308b613364b63a43847445dd50a969579f994bdc /libbutl/diagnostics.mxx
parent5b549d176ba6eff19400c5edbd100eec825f6200 (diff)
Add ability to specify custom diag_record writer
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_;