I’m trying to make myself a better logging class, I got all the basic down and it works adequately and i getting ready to add the advances features...
i am using Visual studio 6, NOT vs.net
i was wondering how i would show the function that the log() function was called from
and from what file and line it came from.
ie: [File: C:\cpp\logy\log.cpp line: 195]
in the end i want something like this.
[Fri Nov 07 15:48:38 2003] [File: C:\cpp\logy\log.cpp line: 195] [CFooClass::FooMethod()] this is an error message
i see this done in .net
and in a lot of other games and appz when they crash.
So It must be possible