Re: [GD-General] runtime error logging
Brought to you by:
vexxed72
From: Julien K. <ma...@ju...> - 2003-07-14 16:19:05
|
You could take the __FILE__ and __LINE__ preprocessor definitions as source for your hash-function.. (jsut an idea.. never needed something like this). greets Julien Koenen ----- Original Message ----- From: "Tom Forsyth" <to...@mu...> To: <gam...@li...> Sent: Monday, July 14, 2003 6:02 PM Subject: RE: [GD-General] runtime error logging > We do three things. (1) surround high-frequency info with single quotes. (2) > hash the characters _not_ in single quotes. (3) check hash against a list of > "I've already reported that" errors. So you have: > > LOG_ERROR ( "Unknown effect '%s' in mesh '%s'\n", sEffectName, sMeshName ); > > So this is a spritnf-style format string, and will come out to be something > like: > > Unknown effect 'WATRE' in mesh 'blah.x' > Unknown effect 'WATRE' in mesh 'blah2.x' > Unknown effect 'WATRE' in mesh 'blah3.x' > > ...so then we remove everything in single quotes: > > Unknown effect in mesh > Unknown effect in mesh > Unknown effect in mesh > > ...and hash those. And of course they all come out with the same hash value > and only the first one gets reported if you click on "Ignore all" in our > little dialog box. > > > Tom Forsyth - Muckyfoot bloke and Microsoft MVP. > > This email is the product of your deranged imagination, > and does not in any way imply existence of the author. > > > -----Original Message----- > > From: Andras Balogh [mailto:bn...@ma...] > > Sent: 14 July 2003 16:41 > > To: gam...@li... > > Subject: [GD-General] runtime error logging > > > > > > There are some cases when I have to deal with runtime errors that > > cannot be seen before, such as when the user executes an invalid > > script. I can handle these events, but I would also like to log them > > somewhere. The problem is that these invalid events may happen in > > every frame (or even multiple times a frame) flooding the log file in > > no time... > > > > Any ideas on how I could do "singleton" logging of errors? > > Can't think of any simple solution :( > > > > thanks, > > > > Bandi > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Parasoft > > Error proof Web apps, automate testing & more. > > Download & eval WebKing and get a free book. > > www.parasoft.com/bulletproofapps1 > > _______________________________________________ > > Gamedevlists-general mailing list > > Gam...@li... > > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > > Archives: > > http://sourceforge.net/mailarchive/forum.php?forum_id=557 > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps1 > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=557 |