Logging Function Parameters
dom
oggs at gmx.at
Sat Mar 17 10:34:41 UTC 2018
Hi,
I am looking for a method to log the current function name +
parameters.
Getting the name of the current function is simply possible with
__PRETTY_FUNCTION__
Is there some possibility to generically access the parameters of
a function such that they can be iterated and printed out?
currently i have something like this:
log.info(__PRETTY_FUNCTION__, " ", parameter1, " ", parameter2);
i would like to get to something like that:
log.info(__PRETTY_FUNCTION__, " ", parameters.join(", "));
More information about the Digitalmars-d-learn
mailing list