I wanted to print message on System console from JSP page. I would not like to use System.out.println() as it is deprecated and also someone told me that it is not efficient and resume response time if we use very frequently.
I tried to search on internet without success. Your suggestion or guidance would be much appreciated.
Originally posted by kapil patel: Is there any alternative to log4j in case if our project people reluctant to add logging facility.
Your question doesn't make much sense to me.
Either you want logging, or you don't. Which is it? Any alternative to Log4J is still logging.
If you'd rather not tie your project to a single logging system, you can do what I do and use Jakarta Commons Logging which can be used with either Log4J or java's built-in java.util.logging facility (or even a home-grown logging package).