I am trying to develop a macro based vc++ logger in my program.
So basically I want to output a piece of record in my .txt log file once one of my functions is executed. The output record should record the function name, parameter names, parameter values and function return values at this point. The entire logger is controlled by macro that can be enabled/disabled by user.
Any idea how I should start this? Any suggestion is highly appreciated. Thansk.