This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes Web Application And Logging Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Web Application And Logging" Watch "Web Application And Logging" New topic
Author

Web Application And Logging

Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Hello All;

I have a web application that follows a MVC design pattern. JSP creates the view, servlets pass paramters back and forth between java classes that do all the business logic and database transactions.

Now I would like to get all the components writing to the same log file on the server. Not totally sure how I can do this.

My web server is Apache, Servlet Container is Tomcat, DB is mySQL.

Anyone out there done something like this? Any tips?

Thanks,

Luke


Luke
SCJP
James Ellis
Ranch Hand

Joined: Oct 14, 2004
Posts: 205
You can get all the components from Tomcat to log to the same log file by using Log4j. You can download it from here.
Luke Shannon
Ranch Hand

Joined: Sep 30, 2004
Posts: 239
Perfect! Thanks.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Web Application And Logging
 
Similar Threads
why getting 404 error? page is there.
brain stromer(very urgent)
help on ibm webserver???
JRun 3.1 Error: cannot find package named rt.jar
Email System