We have a C++ code where we are logging messages to a file.
There are different levels like error, warning, trace, datadump.
With the level as data dump we need to dump attributes to log file with some message string.
Can anyone suggest how the attributes can be dumped to the log file.
I just want to know how dumping output can come in log file.
One approach is to accept variable number of arguments in logger interface.
Please suggest me any other design how this can be done efficiently.