Click here to Skip to main content
12,248,777 members (39,401 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VisualC++ logging
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-Oct-12 11:41am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Have a look at: ACE_Log_Msg[^]

The whole thing can be downloaded from here[^]

Best regards
Espen Harlinn
  Permalink  
Comments
   
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 ...
   
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 28 May 2015
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100