Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

servlet logging under tomcat

Thread view: 
erjdriver - 07 Oct 2006 22:37 GMT
right now when i do from my servlets

System.out.println(...)

it goes to /logs/catalina.out

file. i've got several webapps and all of them send to
the same file.

is there a way to direct to a separate file
(i.e. each webapp to a separate file).

thx
Arne Vajhøj - 07 Oct 2006 22:59 GMT
> right now when i do from my servlets
>
[quoted text clipped - 7 lines]
> is there a way to direct to a separate file
> (i.e. each webapp to a separate file).

System.out.println is very bad from a performance perspective.
Switch to log4j.

As a bonus log4j will also allow you to separate output.

Arne
Filip Larsen - 07 Oct 2006 23:18 GMT
> is there a way to direct to a separate file
> (i.e. each webapp to a separate file).

One way is to place a logging.properties file in each webapp, see
http://tomcat.apache.org/tomcat-5.5-doc/logging.html for details.

Regards,
Signature

Filip Larsen



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.