Re: rotate catalina.out

2017-04-13 Thread Rainer Jung

Am 13.04.2017 um 14:57 schrieb shivashankar manukondu:

Is there any possibility loss the log information in case if we use any
external tools like Log4j, logrotete


I suggest you make the adjustment to your conf/logging.properties that I 
mentioned. You should also make sure, that no application log 
configuration uses a stdout, console etc. appender. As a result, your 
catalina.out will no longer receive log messages, only if a developer 
decided to directly write to STDOUT instead of using a log framework.


Log4j is no external tool. logrotate and similar are and yes, depending 
on details there is sometimes a risk of using log information due to 
external rotation.


Regards,

Rainer


On Wed, Apr 12, 2017 at 4:32 PM, Rainer Jung 
wrote:


Am 12.04.2017 um 16:15 schrieb Mark Thomas:


On 12/04/17 14:13, shivashankar manukondu wrote:


Hi,

Do we have any default catalina.out
 rotation in the tomcat8
without using any external tool like Log4J or logrotate.



No. But since catalina.out is only what is written to stdout is should
be mostly (ideally entirely) empty.



Aren't we currently still copying everything to STDOUT by default?

In logging.properties:

.handlers = 1catalina.org.apache.juli.AsyncFileHandler,
java.util.logging.ConsoleHandler

So once people switch this to production style config

.handlers = 1catalina.org.apache.juli.AsyncFileHandler

your statement would apply.

Regards,

Rainer


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: rotate catalina.out

2017-04-13 Thread shivashankar manukondu
Is there any possibility loss the log information in case if we use any
external tools like Log4j, logrotete

Regards,
Siva

On Wed, Apr 12, 2017 at 4:32 PM, Rainer Jung 
wrote:

> Am 12.04.2017 um 16:15 schrieb Mark Thomas:
>
>> On 12/04/17 14:13, shivashankar manukondu wrote:
>>
>>> Hi,
>>>
>>> Do we have any default catalina.out
>>>  rotation in the tomcat8
>>> without using any external tool like Log4J or logrotate.
>>>
>>
>> No. But since catalina.out is only what is written to stdout is should
>> be mostly (ideally entirely) empty.
>>
>
> Aren't we currently still copying everything to STDOUT by default?
>
> In logging.properties:
>
> .handlers = 1catalina.org.apache.juli.AsyncFileHandler,
> java.util.logging.ConsoleHandler
>
> So once people switch this to production style config
>
> .handlers = 1catalina.org.apache.juli.AsyncFileHandler
>
> your statement would apply.
>
> Regards,
>
> Rainer
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 

Regards
Siva
#068860592040


Re: rotate catalina.out

2017-04-12 Thread Rainer Jung

Am 12.04.2017 um 16:15 schrieb Mark Thomas:

On 12/04/17 14:13, shivashankar manukondu wrote:

Hi,

Do we have any default catalina.out
 rotation in the tomcat8
without using any external tool like Log4J or logrotate.


No. But since catalina.out is only what is written to stdout is should
be mostly (ideally entirely) empty.


Aren't we currently still copying everything to STDOUT by default?

In logging.properties:

.handlers = 1catalina.org.apache.juli.AsyncFileHandler, 
java.util.logging.ConsoleHandler


So once people switch this to production style config

.handlers = 1catalina.org.apache.juli.AsyncFileHandler

your statement would apply.

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: rotate catalina.out

2017-04-12 Thread Mark Thomas
On 12/04/17 14:13, shivashankar manukondu wrote:
> Hi,
> 
> Do we have any default catalina.out
>  rotation in the tomcat8
> without using any external tool like Log4J or logrotate.

No. But since catalina.out is only what is written to stdout is should
be mostly (ideally entirely) empty.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



rotate catalina.out

2017-04-12 Thread shivashankar manukondu
Hi,

Do we have any default catalina.out
 rotation in the tomcat8
without using any external tool like Log4J or logrotate.

Also should not be loss any logs while rotating.

-- 

Regards
Manu


Re: rotate catalina.out without restart?

2016-02-02 Thread Harald Dunkel
Hi Christopher,

On 02/01/2016 05:07 PM, Christopher Schultz wrote:
> Harald,
> 
> On 2/1/16 10:42 AM, Harald Dunkel wrote:
>> would it be possible to integate apache's rotatelogs into
>> catalina.sh to support daily rotation of catalina.out without
>> restart?
> 
> Nope.
> 

:-(.

>> This would be #1 on my wish list for version 9.
> 
> If you use the Tomcat startup scripts, the shell is responsible for
> output redirection. Hacking that to pipe-through an external program
> (eg. chronolog, etc.) is possible but makes the scripts very complicated
> .

OK, then the question is why does catalina.sh write to catalina.out
at all? stdout/stderr of the script would be sufficient. Writing to
a hard wired log file without rotation is the worst option of all
(even if you can choose the file name).

> 
> If you want to rotate stdout/stderr logs, you should use jsvc or some
> other service-runner; they will know how to rotate those files. For
> example, jsvc can rotate those files when it receives a signal.
> 

Will this make catalina.out obsolete?


Regards
Harri

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: rotate catalina.out without restart?

2016-02-02 Thread Caldarale, Charles R
> From: Harald Dunkel [mailto:harald.dun...@aixigo.de] 
> Subject: Re: rotate catalina.out without restart?

> OK, then the question is why does catalina.sh write to catalina.out
> at all? stdout/stderr of the script would be sufficient.

And where would you have the output go when Tomcat is run as a service?  The 
redirection to catalina.out is there not for the benefit of the script, but 
rather to handle sloppily-written webapps that dump things into stdout or 
stderr rather than using a logger.  If you want to eliminate writing to 
catalina.out, set swallowOutput to true in the  elements of the 
offending (and offensive) webapps.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: rotate catalina.out without restart?

2016-02-02 Thread RAY, DAVID

> From: Harald Dunkel [mailto:harald.dun...@aixigo.de] 
> Subject: Re: rotate catalina.out without restart?

> OK, then the question is why does catalina.sh write to catalina.out
> at all? stdout/stderr of the script would be sufficient.

>And where would you have the output go when Tomcat is run as a service?  The 
>redirection to catalina.out is there not for the benefit of the script, but 
>rather to handle sloppily->written webapps that dump things into stdout or 
>stderr rather than using a logger.  If you want to eliminate writing to 
>catalina.out, set swallowOutput to true in the  >elements of the 
>offending (and offensive) webapps.

 >- Chuck


Did you not read his response CHUCK???   He just told you.  I quote:  " 
stdout/stderr of the script would be sufficient"   Not that I have an opinion 
one way or the other.  Just pointing out the obvious.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: rotate catalina.out without restart?

2016-02-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Harald,

On 2/2/16 3:06 AM, Harald Dunkel wrote:
> Hi Christopher,
> 
> On 02/01/2016 05:07 PM, Christopher Schultz wrote:
>> Harald,
>> 
>> On 2/1/16 10:42 AM, Harald Dunkel wrote:
>>> would it be possible to integate apache's rotatelogs into 
>>> catalina.sh to support daily rotation of catalina.out without 
>>> restart?
>> 
>> Nope.
>> 
> 
> :-(.
> 
>>> This would be #1 on my wish list for version 9.
>> 
>> If you use the Tomcat startup scripts, the shell is responsible
>> for output redirection. Hacking that to pipe-through an external
>> program (eg. chronolog, etc.) is possible but makes the scripts
>> very complicated .
> 
> OK, then the question is why does catalina.sh write to
> catalina.out at all? stdout/stderr of the script would be
> sufficient. Writing to a hard wired log file without rotation is
> the worst option of all (even if you can choose the file name).

When you run "bin/catalina.sh start" you are implicitly requesting
your stdout/stderr be redirected. If you don't want that to happen,
don't run it that way.

Try this:

$ bin/catalina.sh start | whatever_you_want

>> If you want to rotate stdout/stderr logs, you should use jsvc or
>> some other service-runner; they will know how to rotate those
>> files. For example, jsvc can rotate those files when it receives
>> a signal.
>> 
> 
> Will this make catalina.out obsolete?

If you use jsvc, catalina.out is not a factor at all. The state of its
obsolescence is up to you.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlawupMACgkQ9CaO5/Lv0PDuVACgo8NsBHw1sSvF9VZHB8O4+wIJ
314AnAspyFr8IEMyLlBc+0Pz/+Zoh/bw
=b8e0
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: rotate catalina.out without restart?

2016-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Harald,

On 2/1/16 10:42 AM, Harald Dunkel wrote:
> would it be possible to integate apache's rotatelogs into
> catalina.sh to support daily rotation of catalina.out without
> restart?

Nope.

> This would be #1 on my wish list for version 9.

If you use the Tomcat startup scripts, the shell is responsible for
output redirection. Hacking that to pipe-through an external program
(eg. chronolog, etc.) is possible but makes the scripts very complicated
.

If you want to rotate stdout/stderr logs, you should use jsvc or some
other service-runner; they will know how to rotate those files. For
example, jsvc can rotate those files when it receives a signal.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlavgtcACgkQ9CaO5/Lv0PBzogCffGyiTvRD2KmYsu45t9q/n1w9
U9cAnjGidN7YfcwiDnU4JCvHnCBUhmSD
=1VN9
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: rotate catalina.out without restart?

2016-02-01 Thread Rainer Frey (Inxmail GmbH)

> On 01.02.2016, at 16:42, Harald Dunkel  wrote:
> 
> Hi folks,
> 
> would it be possible to integate apache's rotatelogs
> into catalina.sh to support daily rotation of catalina.out
> without restart?

On linux, (system) logrotate ha a “copytruncate” option that could be used.
You’d need to check whether that could lose some log lines though - and if 
you could live with that.

Rainer
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



rotate catalina.out without restart?

2016-02-01 Thread Harald Dunkel
Hi folks,

would it be possible to integate apache's rotatelogs
into catalina.sh to support daily rotation of catalina.out
without restart?

This would be #1 on my wish list for version 9.


Keep on your good work
Harri

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Log rotate catalina.out

2011-04-28 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Igor,

sorry for answering this late, I was quite busy the last days

On 04/19/2011 09:04 AM, Igor Cicimov wrote:
 Hi Thomas,
 
 Yes I have reference in the catalina.sh to the log4j.properties file:
 
 LOGGING_CONFIG=-Djava.util.logging.config.file=$CATALINA_BASE/conf/log4j.properties
 
 this is what I get in the catalina.out on restart:

Ok to round thinks up, you have do not set the correct system property
for log4j configuration, this is one problem (correct one is:
log4j.configuration, as I wrote in my previous mail).

 INFO: Configuring Log4j from File:
 /data/apache-tomcat-6.0.29/webapps/application/WEB-INF/etc/log4j-configuration.xml
 19/04/2011 4:16:24 PM org.apache.catalina.core.ApplicationContext log
 INFO:  Log4J context Initialized
 
 where log4j-configuration.xml is the application XML file located as given
 in the above log line. So that is being loaded ok.

Your application uses a custom placed log4j configuration file, setting
the log4j property will break this, but if you follow the advices in the
docs (don't set the property, instead place your log4j.properties in
$CATALINA_HOME/lib (or for more recent versions of Tomcat in
$CATALINA_BASE/lib).


For using log4j with Tomcat you need some additional files (read the
documentation carefully:
http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j).

 If I remove CONSOLE from the list of root loggers, isn't this going to
 prevent anything from being logged in the catalina.out file? I would like to
 keep the useful info from the restart process.

Yes it will prevent any log4j lines from being logged to catalina.out.
Just look in the real log files.

Please don't top post, it really confused me, when I was rereading this
mail.

HTH and regards,
- -- 
Thomas Freitag
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk25vGcACgkQGE5pHr3PKuUCZACfSNhMJ3aKb1Y2Chy5dI2kp7pw
uSsAmwRxzqK0hm0WFisviccmO7oF6F3/
=BKkV
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Log rotate catalina.out

2011-04-19 Thread Igor Cicimov
Hi Thomas,

Yes I have reference in the catalina.sh to the log4j.properties file:

LOGGING_CONFIG=-Djava.util.logging.config.file=$CATALINA_BASE/conf/log4j.properties

this is what I get in the catalina.out on restart:

INFO: Configuring Log4j from File:
/data/apache-tomcat-6.0.29/webapps/application/WEB-INF/etc/log4j-configuration.xml
19/04/2011 4:16:24 PM org.apache.catalina.core.ApplicationContext log
INFO:  Log4J context Initialized

where log4j-configuration.xml is the application XML file located as given
in the above log line. So that is being loaded ok.

If I remove CONSOLE from the list of root loggers, isn't this going to
prevent anything from being logged in the catalina.out file? I would like to
keep the useful info from the restart process.

Thanks,
Igor

On Mon, Apr 18, 2011 at 4:54 PM, Thomas Freitag tho...@freit.ag wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi Igor,

 On 04/18/2011 08:23 AM, Igor Cicimov wrote:
  Hi Thomas,
 
  First thanks for your reply. This is the relevant section in the
  $CATALINA_BASE/conf/log4j.properties file:

 Do you use the JAva System Property
 - -Dlog4j.configuration=file:$CATALINA_BASE/conf/log4j.properties to
 reference this file? If not, it will never be loaded.

 
  log4j.debug=true
  log4j.rootLogger=INFO, CATALINA, CONSOLE
  .
  .
  .
  log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
  log4j.appender.CONSOLE.encoding=UTF-8
  log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
  log4j.appender.CONSOLE.DatePattern = '.'-MM-dd
  log4j.appender.CONSOLE.layout.conversionPattern=%d{ISO8601} - %X{login} -
  %X{device} - %X{uri} - %X{log} - %X{sessionId} - %m%n

 Remove CONSOLE from the list of root loggers.

  and this is the log4j.properties file (relevant console section) for the
  application:
 
  appender name=LOGOUT.CONSOLE
  class=org.apache.log4j.DailyRollingFileAppender
  param name=File
  value=$CATALINA_BASE/logs/application-console.log/
  param name=Append value=true/
  param name=datePattern value='.'-MM-dd/
  layout class=org.apache.log4j.PatternLayout
  param name=ConversionPattern
 value=%d{HH:mm:ss}
  [%c] %m%n/
  /layout
  /appender

 This is a XML configuration, you can not mix this with a properties
 configuration. Where is this file located WAR!WEB-INF/classes? If you
 use the system property I mentioned before this file will never be loaded.

  but I can still see the application console output going into
 'catalina.out'
  instead in the 'application-console.log' file which never gets created.

 I don't believe your log4j configuration get loaded, check the
 catalina.out for log4j debug messages (at least during Tomcat startup,
 some lines with prefix LOG4J should appear).

  And this is what I have in the application context:
 
  Context  swallowOutput=true  /Context
 
  Thanks,
  Igorr,


 Regards,
 - --
 Thomas Freitag
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iEYEARECAAYFAk2r4C0ACgkQGE5pHr3PKuW+/ACeKaT7UbhhQHMe9G/gUlgnLuSv
 +/YAn0z6AOITkg+v4QsjCxmC6vIxQHxz
 =YwFi
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Log rotate catalina.out

2011-04-18 Thread Igor Cicimov
Hi Thomas,

First thanks for your reply. This is the relevant section in the
$CATALINA_BASE/conf/log4j.properties file:

log4j.debug=true
log4j.rootLogger=INFO, CATALINA, CONSOLE
.
.
.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.encoding=UTF-8
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.DatePattern = '.'-MM-dd
log4j.appender.CONSOLE.layout.conversionPattern=%d{ISO8601} - %X{login} -
%X{device} - %X{uri} - %X{log} - %X{sessionId} - %m%n

and this is the log4j.properties file (relevant console section) for the
application:

appender name=LOGOUT.CONSOLE
class=org.apache.log4j.DailyRollingFileAppender
param name=File
value=$CATALINA_BASE/logs/application-console.log/
param name=Append value=true/
param name=datePattern value='.'-MM-dd/
layout class=org.apache.log4j.PatternLayout
param name=ConversionPattern value=%d{HH:mm:ss}
[%c] %m%n/
/layout
/appender

but I can still see the application console output going into 'catalina.out'
instead in the 'application-console.log' file which never gets created.

And this is what I have in the application context:

Context  swallowOutput=true  /Context

Thanks,
Igor


On Mon, Apr 18, 2011 at 3:56 PM, Thomas Freitag tho...@freit.ag wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi Igor,

 On 04/18/2011 07:38 AM, Igor Cicimov wrote:
  I have a question about rotating catalina.out file. Is there any way to
  accomplish this through Tomcat without using external tool like logrotate
  for example as shown in the following thread:
 
  http://marc.info/?t=10554447261r=1w=2

 No, catalina.out is is just redirected STDOUT and STDERR, you need an
 external tool for rotating it.

  I understand that this might be a matter of bad coding practice but since
  I'm not the developer of the applications running on the server I can't
 do
  much about it. The applications are configured to use log4j but the
  developers say they can't do much to redirect the applications console
  output to the log files.

 If log4j is really used check the configuration for a ConsoleAppender
 (and disable it). If no logging framework is used, swallowOutput in
 your context configuration (see
 http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) might help
 to keep your catalina.out clean.

 Regards,
 - --
 Thomas Freitag
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iEYEARECAAYFAk2r0o0ACgkQGE5pHr3PKuUotwCfadypG387UpnSkEwkSeudlPsi
 PmgAn0dWtrgaPIn5Ky8znLCzeMeWJ+OW
 =HbCM
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Log rotate catalina.out

2011-04-18 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Igor,

On 04/18/2011 08:23 AM, Igor Cicimov wrote:
 Hi Thomas,
 
 First thanks for your reply. This is the relevant section in the
 $CATALINA_BASE/conf/log4j.properties file:

Do you use the JAva System Property
- -Dlog4j.configuration=file:$CATALINA_BASE/conf/log4j.properties to
reference this file? If not, it will never be loaded.

 
 log4j.debug=true
 log4j.rootLogger=INFO, CATALINA, CONSOLE
 .
 .
 .
 log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
 log4j.appender.CONSOLE.encoding=UTF-8
 log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
 log4j.appender.CONSOLE.DatePattern = '.'-MM-dd
 log4j.appender.CONSOLE.layout.conversionPattern=%d{ISO8601} - %X{login} -
 %X{device} - %X{uri} - %X{log} - %X{sessionId} - %m%n

Remove CONSOLE from the list of root loggers.

 and this is the log4j.properties file (relevant console section) for the
 application:
 
 appender name=LOGOUT.CONSOLE
 class=org.apache.log4j.DailyRollingFileAppender
 param name=File
 value=$CATALINA_BASE/logs/application-console.log/
 param name=Append value=true/
 param name=datePattern value='.'-MM-dd/
 layout class=org.apache.log4j.PatternLayout
 param name=ConversionPattern value=%d{HH:mm:ss}
 [%c] %m%n/
 /layout
 /appender

This is a XML configuration, you can not mix this with a properties
configuration. Where is this file located WAR!WEB-INF/classes? If you
use the system property I mentioned before this file will never be loaded.

 but I can still see the application console output going into 'catalina.out'
 instead in the 'application-console.log' file which never gets created.

I don't believe your log4j configuration get loaded, check the
catalina.out for log4j debug messages (at least during Tomcat startup,
some lines with prefix LOG4J should appear).

 And this is what I have in the application context:
 
 Context  swallowOutput=true  /Context
 
 Thanks,
 Igorr,


Regards,
- -- 
Thomas Freitag
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2r4C0ACgkQGE5pHr3PKuW+/ACeKaT7UbhhQHMe9G/gUlgnLuSv
+/YAn0z6AOITkg+v4QsjCxmC6vIxQHxz
=YwFi
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Log rotate catalina.out

2011-04-17 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Igor,

On 04/18/2011 07:38 AM, Igor Cicimov wrote:
 I have a question about rotating catalina.out file. Is there any way to
 accomplish this through Tomcat without using external tool like logrotate
 for example as shown in the following thread:
 
 http://marc.info/?t=10554447261r=1w=2

No, catalina.out is is just redirected STDOUT and STDERR, you need an
external tool for rotating it.

 I understand that this might be a matter of bad coding practice but since
 I'm not the developer of the applications running on the server I can't do
 much about it. The applications are configured to use log4j but the
 developers say they can't do much to redirect the applications console
 output to the log files.

If log4j is really used check the configuration for a ConsoleAppender
(and disable it). If no logging framework is used, swallowOutput in
your context configuration (see
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) might help
to keep your catalina.out clean.

Regards,
- -- 
Thomas Freitag
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2r0o0ACgkQGE5pHr3PKuUotwCfadypG387UpnSkEwkSeudlPsi
PmgAn0dWtrgaPIn5Ky8znLCzeMeWJ+OW
=HbCM
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org