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



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: A question about log-rotation on "catalina.out"

2009-10-29 Thread Harald Dunkel
thomas2004 wrote:
> Hi all,
> 
> I have now a problem/question:
> 
> I've installed Tomcat 5.5.27 on Linux. Though the "catalina.out" will be
> rotated everyday, i.g. "catalina.-mm-dd.log. But the "catalina.out"-self
> doesn't begin from the new day but still contains the old log messages. I've
> heard this is default setting. Is it true?
> 

catalina.out is written via I/O redirection in the startup script.
Maybe you would like to send stdout and stderr to logger(1) instead?


Hope this helps

Regards


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