Re: rolling the console log

2008-04-04 Thread Mark Thomas

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rolling the console log

2008-04-03 Thread Steve Ochani
> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For
> additional commands, e-mail: [EMAIL PROTECTED] > >
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED] For additional commands,
> e-mail: [EMAIL PROTECTED]
> 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rolling the console log

2008-04-03 Thread Angelina Talley
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rolling the console log

2008-04-03 Thread Angelina Talley
Sadly, we're not running Apache. Just Tomcat standalone.

On Fri, Apr 4, 2008 at 4:33 AM, Vamsavardhana Reddy <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rolling the console log

2008-04-03 Thread Mark Thomas

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: rolling the console log

2008-04-03 Thread Vamsavardhana Reddy
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 <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


rolling the console log

2008-04-03 Thread Angelina Talley
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]