Who knows about org.apache.log4j.NDC?

Amandeep Singh

Ranch Hand

Posts: 850

posted 5 years ago

I today realized NDC is such a useful feature logging utility, how come it so hidden or not common among developers or least better say there is already so good useful classes sitting out there, how do we know of it? If we don't know about it something useful sitting out there goes un noticed.

Do we know how to make us better to be able to find good stuff sitting out there in jar's?

I knew about the NDC, because it was covered in the tutorial about log4j. In other words, it isn't hidden at all, it's in plain view for anyone who reads the tutorial. And reading the tutorial should be the first option for anybody who wants to use the product, if there is one.

So that wasn't a good example of a hidden feature. But I would say that an open-source product which doesn't come with a tutorial, or an introduction, or a set of examples isn't a good product, and I'm sure you would agree with me.

Given the fact you have touched tutorial, do you start with the tutorial or book? Myself I always start with the book, because my understanding is book intent is present in clear format than tutorial. But hard to say doesn't mean we should ignore tutorials too.

It would depend on why I was using the product. If I was just using it because it was a dependency of some other product I needed, then probably the tutorial would be enough for me. Or if I was just using it because of one particular feature which I needed. I would read the book if the product was my primary focus and I expected the project to last several months.