I've been looking around, and I think log4cxx might be a better choice
as it has a configuration file. The configuration file speeds things
up considerably when the program is sent to production.  

>Visual C++ 97 is very old, you should upgrade to Visual C+ 2008.

I'm well aware of this problem, but my company refuses to upgrade
(even though they already have the software to do it!)

--- In [email protected], "Brett McCoy" <[EMAIL PROTECTED]> wrote:
>
> On Mon, Jul 14, 2008 at 8:44 AM, maskkkk132 <[EMAIL PROTECTED]> wrote:
> > Is there a good way to do logging in Visual C++ 97?
> >
> > I know that log4cpp does not support Visual C++ 97 and I was just
> > wondering.
> 
> Logging for what? A log is just an open file that you write to
> whenever something interesting happens in your program (error,
> exception, sending datam receiving data, etc), usually with a
> timestamp. I generally make a class to handle logging, with the
> filename the timestamp of when it was first created. If you want to
> get fancier, you can implement something to roll logs at midnight to a
> new file or something -- or you can get pre-built logging tools (like
> the ones Apache uses). As for log4cpp, you can get the source code and
> make it work for whatever C++ version you are using. Visual C++ 97 is
> very old, you should upgrade to Visual C+ 2008.
> 
> -- Brett
> ------------------------------------------------------------
> "In the rhythm of music a secret is hidden;
>  If I were to divulge it, it would overturn the world."
>  -- Jelaleddin Rumi
>


Reply via email to