Click here to Skip to main content
11,435,451 members (53,480 online)
Rate this: bad
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.

Posted 1-Oct-12 11:41am

1 solution

Rate this: bad
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
Sergey Alexandrovich Kryukov at 1-Oct-12 18:17pm
ACE again? Jack of all trades; my 5.
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... :-)

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

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