Original Post
Hi guys,
I''m on a team of newbie game programmers. We all are working on a little project of our own and when done we send our code to team members for code review or help. In this way we can learn from eachother and when we are all a bit better than now we want to create a 2D game as a team. Currently I''m working on a error log class. CLog holds 1 char* var wich represents the log file. I already implemented writing into the log file like this: open file, write to file, flush buffer, close file. You can also set the output file name. What else do I need to implement in the log class. I want thinking about date/time reporting but that would make it less portable. I had the idea of letting the programmer create the log string so the programmers can report whatever he likes(Date time, sourcefile, Error message).
Do I need anything else in my class than setting the output file and a WriteLog(char* myMessage) function???
TIA,
Sand Hawk
Member of the Stupid Coders.
http://www.stupidcoders.cjb.net
-Earth is 98% full. Please delete anybody you can.