Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
ServletContext.log Vs log4j
Vishwas Hegde
Ranch Hand
Posts: 212
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello Ranchers...
I just wanted to know what are the differece between log4j and ServletContext.log();
Even though the
Servlet
API has options for logging in the msgs, why do most of the people use log4j?
Regards
Vishwas
SCJP1.4
SCJA
Adeel Ansari
Ranch Hand
Posts: 2874
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Because most of the time we want to log messages not just from the servlet but also in business tire, and database tier. Log4J is meant for that, therefore we prefer Log4J over, ServletContext logging.
The substitute would be java.util.logging.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Debugging Best Practices??
Mock exam question doubt?
error when i run log file
tomcat logger
how to log errors occurred in backend java engine or servlet
More...