- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Probably not (at least I would hope not). More than likely they're just using it for logging: AuthenticationService log: [log message body]. This just creates a static instance of the logger for this specific class just once per app-domain (at least it's this way in .net), and I doubt they're switching on the type in the method call.
Admin
Really? I dropped one when I read this:
Admin
If they had no parameter there, I would agree with you. And you made me think, so thanks.
Admin
That response was logged to the file /irony/DailyWTF.log
Admin
Admin
Admin
Sorry, I just shot in the dark considering I don't know Java at all. Does this pass in an instance of the class or is it like typeof(AuthenticationService) in .Net?
Admin
Actually, the method is using Class.getName() to get a logger category string out of the class passed. You can instead pass the fully qualified class name (or anything else, really) as a string, but passing the class has less chance of typos.
Admin
From the default LoggerRepository called Hierarchy:
So not a switch, a Hashtable lookup on the Class-name.
Polymorphism works wonderful for Object instances, but this is a static variable populated by static Java code - Java is not completely object-oriented.
Admin
If a logger logs the logging but nobody is there to read the logs does it actually logs anything ?
Admin
Admin
"... the reason these guys had no peer review was that they had no peers."
If TDWTF has taught me nothing else, it's that these guys have millions of peers. The dunce cap would be a useful accessory for many of them.
Admin
Why does the code perform the lock first before checking the HT for the key? Shouldn't it check the HT first, if null lock, check again (race condition), then add if still null?
Admin
You may have your logging. Just don't wiz on the electric firewalls...
Admin
So 1 server handles the requests, the other 6 servers hold the log file....
Admin
Wow! A personal note. Are you boog?
Admin
Admin
(By the way, you really need to brush up on your TDWTF memes there Nagesh.)
Admin
Actually, this is perfectly valid, since embedded systems without a file system can not have a log file. The only available output would be the console! I would make use of XML however since that greatly speeds up processing on embedded systems, especially low performance chips.
Admin
TRWTF is logging success without testing anything between the "Processing..." and "success" parts.
Admin
I think the fact that the runtime even MADE it to that line of code implies that it succeeded... or something.
Admin
system.out.println( "Ow! My fingers hurt." ); system.out.println( "And I am thirsty too." ); system.out.println( "I am going to go get a cup of coffee." ); system.out.println( "I am back now. I guess I better do my job." ); system.out.println( "Getting paid per line of code isn't all that bad." );
Admin
Before my time, booger!!!
Admin
Admin
FTFY
Admin
No, I usually do stuff with farm animals when I want to feel dirty...
That's right, you heard me!
Admin
Is bloddy disgusting.
Admin
OH please, don't act all high and mighty... I saw you eyeing the goat at the market this morning. That's right, you thought I didn't see you, but I did.
Admin
FILE_NOT_FOUND DISK_FULL SERVER_FULL
Just like the day many years ago in a distant workplace...(part 3 now renamed part 6)
In the morning staff come in, cannot log onto network.
Check main server, server busy or should we say the main disk drive very, very busy, disk activity lights mimicing a speeded up disco light. Console shows partial error message from backup process.
Reboot server and check drives, string of new bad blocks in the system log. So an error occured at the end of backup which was
Bad blocks all the way down.
At least at the end of backup volume the backup process did not rewind the tape and start the next volume on the same tape!
Admin
So why bother with the "Processing..." part, when that is already logged by the "Getting Token" part?
The logs don't log what they say they are logging.
Admin
Admin
Admin
#!/bin/bash
echo "system.out.println ( "Invoking code generator." );" >> today.java echo "system.out.println ( "Generating code:" );" >> today.java echo "system.out.println ( "Success.");" >> today.java
$0
Admin
So much logging, not liking.
Admin
Good thing that logarithms, including the natural logarithm, developed separately from calculus; they describe the critical principle of the slide rule, among other things. Calculus serves mainly to describe the area or volume of a bounded region, or the line or plane tangent to a line or surface.
Further, a calculus joke which is also a pun clearly falls into the intersection of the two. As such, they cannot be 'below' puns.
By the way, you got epic trolled by a math geek.
Admin
Thanks.
Admin
This is totally unacceptable: They should be logging the stack trace, too!
Admin
Admin
Admin
The philosophical statement will go out the window after the server crashes due to the disk being full.
CAPTCHA: nulla On second thought your statment might be valid if logging to dev\null.
Admin
Admin
But verse is still worse!
Admin
As to instances of number 2, I almost always convert them back into the original calculus and evaluate the definite integral or derivative or whatever it is that gets the answer.
It's prettier that way.
P.S. - I served you back. Now... it's on.
Admin
He has not registered for very same reason. He's trying to be extra super smart by putting all these unicode character data in his user name.
Admin
Admin
Web search doesn't provide any illumination. Can you please explain, or at least post a link?
Admin