Click here to Skip to main content
12,814,411 members (39,082 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.

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
ACE again? Jack of all trades; my 5.
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... :-)

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
Web02 | 2.8.170308.1 | Last Updated 28 May 2015
Copyright © CodeProject, 1999-2017
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