If you are a Java developer, or know one, or can spell Java, or drink coffee, you need the new Log4J Shortcut from O’Reilly! It’s only 5 bucks (the price of a frapa-moco-latteccino from Starbucks – well, if you get whipped cream and sprinkles on it, but who doesn’t?!?). And you can get it here .
Seriously, though, every time I need to do something with log4j that I’ve never done before, or have forgotten how to do (and don’t have an example to copy and modify), I start Googling around the internet looking for an example, and usually come up with nothing. Then I get the source code and start poking around in that (but only if it’s been so long since I last did that, that I’ve forgotten how painful it is to do). I think most developers are in this boat, and MUCH of the power of log4j goes unexploited as a result.
When O’Reilly asked me to do a ShortCut on log4j I was all, “Hey, man, does anybody use log4j directly anymore (because of Jakarta Commons)?” and “It’s so simple, why would you need another book on it?” and “There is a book on it, right?” As it turns out, you can buy Ceki’s (the log4j creator) book for around $20.00. I did. And I’d rather take my chances with a Google search. The information is not well organized, and the examples really really (really) suck. I wanted to write a guide to log4j configuration. Using log4j is dead simple. It’s configuring it that always gives me the heeby jeebies.
So, if you want to ramp up your log4j game, you need this Short Cut.
Now, please forward this to everyone you know, and Bill Gates might send you that $75 you’ve been waiting on. I’m just saying… it could happen.