Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Folks:

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.

Nick
Posted

1 solution

Have a look at: ACE_Log_Msg[^]

The whole thing can be downloaded from here[^]

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Oct-12 18:17pm    
ACE again? Jack of all trades; my 5.
--SA
Espen Harlinn 1-Oct-12 18:20pm    
Thank you, Sergey :-D
I've used ACE for about 10 years now, and the distributed logging facility has been pretty useful ...
Sergey Alexandrovich Kryukov 1-Oct-12 18:35pm    
Well, ten years is when the brain cells are get all replaced... :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900