You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Angelina Talley <an...@gmail.com> on 2008/04/03 23:27:56 UTC
rolling the console log
Hello! We are running Tomcat 5.0 in a production environment (so
upgrading isn't an option) and have encountered an issue where our
console log is getting to be quite large (on the order of gigabytes).
Is there any way via Tomcat configuration to set this log up to roll
daily? Ideally of course we'd fix the code to not print so much, but
that's not an option either.
Thanks in advance for your help!
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: rolling the console log
Posted by Angelina Talley <an...@gmail.com>.
Sadly, we're not running Apache. Just Tomcat standalone.
On Fri, Apr 4, 2008 at 4:33 AM, Vamsavardhana Reddy <c1...@gmail.com> wrote:
> May be you can pipe it to rotatelogs? See [1].
>
> [1] http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
>
> ++Vamsi
>
> On Fri, Apr 4, 2008 at 2:57 AM, Angelina Talley <an...@gmail.com>
> wrote:
>
>
> > Hello! We are running Tomcat 5.0 in a production environment (so
> > upgrading isn't an option) and have encountered an issue where our
> > console log is getting to be quite large (on the order of gigabytes).
> > Is there any way via Tomcat configuration to set this log up to roll
> > daily? Ideally of course we'd fix the code to not print so much, but
> > that's not an option either.
> >
> > Thanks in advance for your help!
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: rolling the console log
Posted by Vamsavardhana Reddy <c1...@gmail.com>.
May be you can pipe it to rotatelogs? See [1].
[1] http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
++Vamsi
On Fri, Apr 4, 2008 at 2:57 AM, Angelina Talley <an...@gmail.com>
wrote:
> Hello! We are running Tomcat 5.0 in a production environment (so
> upgrading isn't an option) and have encountered an issue where our
> console log is getting to be quite large (on the order of gigabytes).
> Is there any way via Tomcat configuration to set this log up to roll
> daily? Ideally of course we'd fix the code to not print so much, but
> that's not an option either.
>
> Thanks in advance for your help!
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: rolling the console log
Posted by Mark Thomas <ma...@apache.org>.
Angelina Talley wrote:
> Ideally, it would be. But, I neglected to mention we're running on
> Windows Server. That's the other reason I am looking for a
> configuration option.
Assuming it is webapp use of System.out that is the problem you could
configure swallowOutput="true" for the context - this will redirect stdout
and stderr to the context log rather than catalina.out
On 5.0.x the context log should rollover daily and you can run a scheduled
task to delete the old ones.
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: rolling the console log
Posted by Steve Ochani <oc...@ncc.edu>.
> Ideally, it would be. But, I neglected to mention we're running on
> Windows Server.
Yes you did.
>That's the other reason I am looking for a
> configuration option.
I don't know of one but this might work for you
http://www.datori.org/?p=7
>
> Thanks!
>
> On Fri, Apr 4, 2008 at 4:34 AM, Mark Thomas <ma...@apache.org> wrote:
> > > Angelina Talley wrote: > > Hello! We are running Tomcat 5.0 in a
> production environment (so > > upgrading isn't an option) and have
> encountered an issue where our > > console log is getting to be quite
> large (on the order of gigabytes). > > Is there any way via Tomcat
> configuration to set this log up to roll > > daily? Ideally of course
> we'd fix the code to not print so much, but > > that's not an option
> either. > > > > Thanks in advance for your help! > > > > logrotate
> might be the simplest option. > > Mark > > > > >
> ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org > To
> unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For
> additional commands, e-mail: users-help@tomcat.apache.org > >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: users-unsubscribe@tomcat.apache.org For additional commands,
> e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: rolling the console log
Posted by Angelina Talley <an...@gmail.com>.
Ideally, it would be. But, I neglected to mention we're running on
Windows Server. That's the other reason I am looking for a
configuration option.
Thanks!
On Fri, Apr 4, 2008 at 4:34 AM, Mark Thomas <ma...@apache.org> wrote:
>
> Angelina Talley wrote:
> > Hello! We are running Tomcat 5.0 in a production environment (so
> > upgrading isn't an option) and have encountered an issue where our
> > console log is getting to be quite large (on the order of gigabytes).
> > Is there any way via Tomcat configuration to set this log up to roll
> > daily? Ideally of course we'd fix the code to not print so much, but
> > that's not an option either.
> >
> > Thanks in advance for your help!
> >
>
> logrotate might be the simplest option.
>
> Mark
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: rolling the console log
Posted by Mark Thomas <ma...@apache.org>.
Angelina Talley wrote:
> Hello! We are running Tomcat 5.0 in a production environment (so
> upgrading isn't an option) and have encountered an issue where our
> console log is getting to be quite large (on the order of gigabytes).
> Is there any way via Tomcat configuration to set this log up to roll
> daily? Ideally of course we'd fix the code to not print so much, but
> that's not an option either.
>
> Thanks in advance for your help!
logrotate might be the simplest option.
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org