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 server.xml - FileLogger and Valve Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "server.xml - FileLogger and Valve" Watch "server.xml - FileLogger and Valve" New topic
Author

server.xml - FileLogger and Valve

sunil kelkar
Greenhorn

Joined: Aug 16, 2005
Posts: 16
I want to configure the Logger and Valve settings in server.xml, in such a way that stderr and stdout are redirected to the file specified there.

Can anyone provide me the relevant server.xml code and an explanation?

Note - I want to redirect my stderr and stdout messages to a file in my application context, rather than the standard catalina.out
[ October 28, 2005: Message edited by: sunil kelkar ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41809
    
  62
This article and especially this one might be good starting points.


Ping & DNS - my free Android networking tools app
sunil kelkar
Greenhorn

Joined: Aug 16, 2005
Posts: 16
Somehow your first link is not working.

This is my server.xml file -


Originally posted by Ulf Dittmer:
This article and especially this one might be good starting points.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: server.xml - FileLogger and Valve