Think back to previous posts and what your comments were to other folks that posted code in an effort to help you. I can think of two recent examples involving Igor and myself and those are only recent ones. Think about it.
Printable View
What? :) Arjay, you didn't drink anything this morning, did you :D
:D
Hey, I remember I ran into a thread here with pictures of some of this forum's mvps. Is it still somewhere?
First of all I said you should not log in spartan/laconic style, but your logs must be human readable. And keeping your logging of moderate size was only a secondary comment. So, as for me, no contradiction at all. :)
And I can see that having your logs readable enough without referring to sources makes not much sense to you. The same to levels (and subsystems, though it's not that common in practice like levels). Something makes me believe it's only a matter of time. ;)
You must be kidding. Is that so difficult to find a descriptive text, when you know the exact function name including class name? Remember I said primary id is __FUNCTION__ but not descriptive text?Quote:
It is also much easier to find the code lines in the source code by their ID rather then by a discriptive text.
The log text must not be passed from one person to another. The log files must be instead. :)Quote:
The exact log text entry might also get distorted when passed from one person to another.
This sounds not very convincing to me: "you know, the client reported 587 tonight. Again!" Sorry, I don't believe you, my people never talk like that. :)Quote:
One more reason is that it's always easy to refer to a particular bug by its ID number among the members of our development team.
For your information, we use referring to a bug (inside developers team as well as between development and validation departments) not by it's placement in the source code but by its id in bug tracking system. And always it is accompanied with verbal comments about visible effects and workflow details. Very few people I know are really good at distinguishing big numbers just by hearing them.
And a bug typically appears a complex of (cross)effects caused by various combinations of reasons, and almost never it is a syntax error (or anything else same stupid) in a single line. I wish I had such bugs all the time! :D
It's never too late to change your mind. Let's have a deal: you use your spartan id system say for a year or a half, and then share with us your impressions and improvements. Agree? :)Quote:
I did use __LINE__ and __FUNCTION__ in my logging before, but sometimes it gives out too much information about the code.
IDK, it's just nice to add a face to words ... I see you already did that, Victor :)
Anyway, if someone knows the link, please post it here...
So, did you guys all meet at that Global MVP summit? Where was it, btw?
Sorry, my impression was the idea is something new to you. My bad. :)Quote:
I've been doing this for quite a long time and never had problems with it
In case I came off wrong in my previous posts, here's an example of a log that may be generated by my software:
In the sample above, 10193 is a version of the program. Then date & time when the event was logged (unless it's the Windows own Event Log), then our unique ID in the square brackets, followed by a description, where possible. In case of the OS error, it is reported too (line 3), or in case of a code/logic specific error, it's reported relative to the unique ID (line 4)Quote:
10193> 8/10/2010 2:55:11 PM : [0087] = >Initiating a new <name> process: Elevated. Cmd line: /ptr /log=1
10193> 8/10/2010 2:55:11 PM : [0095] = >[OS: Microsoft Windows XP Professional Service Pack 3 (build 2600). LOCALE: English_United States.1252]
10193> 8/10/2010 2:54:57 PM : [0560] = **OS_ERR: (2) "C:/Blah-blah-blah" The system cannot find the file specified.
10193> 8/10/2010 2:54:57 PM : [0567] = **INT_ERR
10193> 8/10/2010 2:54:58 PM : [0176] = Exiting process now, ret code = -24
Looks like you are talking about the photo album thread in the Chit Chat section. The link, BTW, wouln't even really be necessary: The thread is sticky and thus always on top pf the list.
Nice, dude! 155 pages :) It may take the whole day to go through.....