implement logging of "events" with additional ID / classifier

This commit is contained in:
Fischlurch 2015-12-12 01:28:42 +01:00
parent 4522e209fb
commit 261bcc9fdb

View file

@ -437,10 +437,15 @@ namespace test{
return *this; 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& EventLog&
event (string classifier, string text) 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. /** Log occurrence of a function call with no arguments.