Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC++ 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 10: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
Sergey Alexandrovich Kryukov at 1-Oct-12 18:17pm
   
ACE again? Jack of all trades; my 5.
--SA
Espen Harlinn at 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 at 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)

  Print Answers RSS
0 CPallini 375
1 Sergey Alexandrovich Kryukov 370
2 BillWoodruff 314
3 George Jonsson 279
4 OriginalGriff 257
0 OriginalGriff 5,030
1 CPallini 4,115
2 Sergey Alexandrovich Kryukov 3,554
3 George Jonsson 2,826
4 Gihan Liyanage 2,386


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2014
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