Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

tomcat windows log
I've started at a company that uses tomcat for an internet map server.
The problem is that the file in c:\tomcat4129\logs keeps on growing and
to and above a gigabyte. To delete it i have to stop services. I have
installed software to notify me when disk space is low but i'd rather
the file didnt get this large in the first place.
I've searched google and the newsgroups, i've looked for config files
and been through the Tomcat Administration pages and the Tomcat Manager
ones and i can find information on a logger to do with catalina_log but
thats held somewhere else and has nothing to do with my problem.
Is there a way i can set the maximum size of this log file in
c:\tomcat\logs or get tomcat to change filename daily?


Report this thread to moderator Post Follow-up to this message
Old Post
john.cockrell@gmail.com
01-27-06 12:05 AM


Re: tomcat windows log
<john.cockrell@gmail.com> wrote in message
news:1138286194.271562.166470@g44g2000cwa.googlegroups.com...
> I've started at a company that uses tomcat for an internet map server.
> The problem is that the file in c:\tomcat4129\logs keeps on growing and
> to and above a gigabyte. To delete it i have to stop services. I have
> installed software to notify me when disk space is low but i'd rather
> the file didnt get this large in the first place.
> I've searched google and the newsgroups, i've looked for config files
> and been through the Tomcat Administration pages and the Tomcat Manager
> ones and i can find information on a logger to do with catalina_log but
> thats held somewhere else and has nothing to do with my problem.
> Is there a way i can set the maximum size of this log file in
> c:\tomcat\logs or get tomcat to change filename daily?
>
I think there is probably a way to do what you want, depending on which
version of Tomcat you have, but I'm not sure how.

There are some places to check that I don't see in the list of places you've
tried:
- the Tomcat website, particularly the HOWTO documents. You can access these
at http://tomcat.apache.org; look for the "Documentation" section of the
index, then click on the appropriate version of Tomcat. Logging works
differently in the different versions of Tomcat so you MUST choose the
appropriate Tomcat version first to get the right documents.
- the archive of the tomcat-users mailing list. You can access the archive
here: http://tomcat.apache.org/lists.html#tomcat-users. I recommend using
the MARC version of the archives because they are searchable.
- the tomcat-users mailing list, where you could post your question if it's
never been asked and answered before (which would surprise me). You can
subscribe here: http://tomcat.apache.org/lists.html#tomcat-users

Don't worry, I think you'll find an answer fairly quickly if you go to the
right places.

Rhino



Report this thread to moderator Post Follow-up to this message
Old Post
Rhino
01-27-06 12:05 AM


Re: tomcat windows log
On Fri, 27 Jan 2006 01:36:34 +1100, john.cockrell wrote:

> I've started at a company that uses tomcat for an internet map server.
> The problem is that the file in c:\tomcat4129\logs keeps on growing and
> to and above a gigabyte. To delete it i have to stop services. I have
> installed software to notify me when disk space is low but i'd rather
> the file didnt get this large in the first place. I've searched google
> and the newsgroups, i've looked for config files and been through the
> Tomcat Administration pages and the Tomcat Manager ones and i can find
> information on a logger to do with catalina_log but thats held somewhere
> else and has nothing to do with my problem. Is there a way i can set the
> maximum size of this log file in c:\tomcat\logs or get tomcat to change
> filename daily?

In *nix land we have logrotate :-)

I believe there is a version on Windows 2000/NT. Google around for
logrotate and windows perhaps.

In the version of Tomcat you're using there's no configuration item to
handle this for you. You could drop the verbosity of the logs, see:

http://tomcat.apache.org/tomcat-4.1...fig/logger.html

If you don't want/need the logs, you can just switch
them off by excluding them from your server.xml file.

Later versions of Tomcat can use log4j which gives you size capping
options.

--
Sean

There's no place like 127.0.0.1

Report this thread to moderator Post Follow-up to this message
Old Post
SMC
01-27-06 12:06 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:12 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.