- 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
It's logs all the way down.
Admin
Over the Mountain Logging the Logger Breaking the Darkness Waking the Grapevine Knowledge of Java is Knowledge of Shadow Java is the Shadow that ripens the Wine Set the controls for the heart of the sun The heart of the sun
Admin
+10 Internets for you!
Admin
Dude, this is TDWTF (in case you've forotten, that's The Daily What The F**k). What better tribute to the "Curious Perversions in Information Technology" than what you describe? It's a homage man; get over it. (Maybe also stop trolling so much) :)
Admin
Admin
Dear Bert Glanstron,
In case you can't tell, this is a grown-up place. The fact that you insist on insulting everyone you meet clearly shows that you're too young and too stupid to be using the internet.
Go away and grow up.
Sincerely, Bert Glanstron
Admin
Admin
Who log the logs out? Who? Who, Who, who, who?
Admin
Admin
Admin
As one of my CS professors once said: "well, you could sprinkle printfs everywhere, or...". He then went on to teach us about these cool tools called debuggers.
These guys either weren't in my class, or were sick that day.
Admin
Admin
Admin
Admin
Sounds to me like this was simply some print-line-debugging that never got removed. I've put in some println comments like that to see if the code was being called or whether it ran when I didn't have the ability to run it in debug mode.
Admin
paid by the line.
Admin
Admin
quote user="Anonymous"]The spammers clearly know how to evade Akismet so the honest users suffer for no good reason.[/quote]
That's the point. Just like gun control here in the US.
Admin
Isn't there a show on the History Channel about this?
Admin
Quit being a dick... You're not me jackass.
Admin
Sorry, I meant you unoriginal jackass...
Admin
Code was not put thru a refactoring utility yet...
Admin
I've done this to do some simple debugging on a very large, multiple process, real-time software load that would crap out if process A didn't get to talk to process B in time because process B was being instrumented by the debugger. Of course, I take out the printf's as soon as I'm done. In fact, one of the checklist items we have to go through before we can deliver a new code change to version control is to ensure all debug statements have been removed. And this is one of the first things people look for when they do a code review.
Of course, not everyone believes in code reviews and version control...
Admin
Admin
PS: I've just registered the username "C-Octothorpe" for real so bad luck, it's mine now! I'm sure you'll come up with a decent alternative.
Admin
Admin
I'm pretty sure I had a dream about this once.
Admin
Let's face it folks, this is "the java way." Belts and suspenders for everyone! Try/Catch for everything! Let's abstract to the point where we need to write 30 lines just to parse a basic XML file (if you're lucky!) AAAAAAAAAAAAAAAAA
Admin
I'm fine with it, really. I'm just glad that I was able to provide an unimaginative simpleton with some inspiration and guidance...
captcha: eros -> If you're pulling off petty 'internet tough guy' stuff like this, obviously you ain't getting any 'eros'...
Admin
First!
oh, damn
Admin
The logging that logs logging is technically called metalogging. The logging that logs metalogging is called metametalogging. The logging that logs metametalogging... well you get the picture.
Admin
It would be even better if the primary log was java.util.log, the logging of the logger using log4j, and the logging of the logging of the logger can use System.out.println. That way, if one of the logging APIs stops working the other ones can pick up the slack.
Admin
We need some more logging patterns too. A logging metafactory that puts out logging factories, that are then called upon to generated abstract logging objects, which are then extended and instantiated at runtime, which in turn use reflection and whatever java thinks is "dynamic dispatch" to implement its own logging interface. At that point (after 200 lines of boilerplate) you'd be ready to actually create a logging object with, provided you actually flesh out the input/output facilities, but that's another post...
Admin
Admin
Admin
Admin
I would seriously like an explanation about the following:
Admin
Admin
Admin
Good point. We need to add log messages reporting how much disk space remains on the drive containing the log file.
Akismet says the above is spam. Either he's very insightful about the lack of value of my comments, or ... I have no idea what the algorithm is.
Admin
Admin
Admin
Admin
Good day. We have an urgent requirement for exactly this class of logging facility. If you would please posts the codes for doing .NETs, we would be most grateful. Thanks in advance.
Admin
What do you want from me Akismet? WHAT DO YOU WANT?
Admin
I think this site has gone from critiquing and showcasing horrible code to exemplifying it. Between the terrible captcha, retarded meme/troll spam, idiots trying to make lame jokes about the captchas, akismet, and the lack of articles recently...
Admin
I wonder if the programmer just KNEW that he had to be reaching this block of code, so if he's not getting the log message for it, that must mean there's something wrong with the logger. Better add some messages to make sure that the logger is working ...
Reminds me of a co-worker who tried to display the contents of a field, and it came out blank. She never considered the possibility that the field might actually be blank, but instead assumed that the print function must have a bug, and spent days trying to find the bug in the library print function and to find alternate ways to print the contents of a string.
Admin
Still? Can't we do something about that? I'm sure both Californians and all the rest of us would be happier if they'd just go their own way.
Admin
Also, did anyone else find this to be ugly and a CodeSmell?
They're having to switch on the class in the getLogger method. Eww. How about trying some fucking polymorphism? I know it's a new fad, having been invented only 60 years ago, but sometimes, fads are a good thing.Admin
Reading this caused me to spontaneously create a log. Thanks. I'll be back after a quick change.