From 261bcc9fdb84779a7e59f45c27b03dbb2de233f6 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Sat, 12 Dec 2015 01:28:42 +0100 Subject: [PATCH] implement logging of "events" with additional ID / classifier --- src/lib/test/event-log.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/test/event-log.hpp b/src/lib/test/event-log.hpp index 2e2f05116..f51a2b040 100644 --- a/src/lib/test/event-log.hpp +++ b/src/lib/test/event-log.hpp @@ -437,10 +437,15 @@ namespace test{ return *this; } + /** log some event, with additional ID or classifier + * @param classifier info to be saved into the `ID` attribute + * @param text actual payload info, to be logged as argument + */ EventLog& event (string classifier, string text) { - UNIMPLEMENTED ("Log event with additional classifier"); + log({"type=event", "ID="+classifier, text}); + return *this; } /** Log occurrence of a function call with no arguments.