File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Configuring log4j 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 » Products » Tomcat
Reply Bookmark "Configuring log4j" Watch "Configuring log4j" New topic
Author

Configuring log4j

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2573

How can I configure my og4j properties such that it will put the log in the file where tomcat puts it's log by default. i.e. log/localhost_log.DATE_HERE.txt

TIA,
- Manish
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Those are two separate ways to log. One is the internal logging mechanism used be tomcat, and another is log4j. It's probably not the best idea to have two processes trying to write to the same file.
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2573

Yeah, you're right!
I figured it out a little later.

- Manish
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Configuring log4j
 
Similar Threads
design pattern book
HTTP 500:Internal Server Error
Enable Logging in Tomcat
I get ServletException from a very simple html form
jsf binding and component rendering problem