implement logging of "events" with additional ID / classifier
This commit is contained in:
parent
4522e209fb
commit
261bcc9fdb
1 changed files with 6 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue