On Tue, Jan 28, 2014 at 12:32:22PM -0500, Daniel Mikusa wrote:
> On Jan 28, 2014, at 12:05 PM, Vye <v...@vye.me> wrote:
> > I have been unsuccessfully trying to remove the date from catalina’s
> > log file name. My ultimate goal is to logrotate the file, which is
> > best done when the file name is static.
> 
> I’m curious, why are you trying to do this?  The log files are being rotated 
> out-of-the-box.  They rotate by date, hence why the date is part of the name. 
>  Why do you need to rotate them with some other tool?  What doesn’t work 
> about the out-of-the-box configuration?

I agree.  logrotate is a very nice crutch for use when the application
doesn't rotate its own logs, but it is better to use the application's
rotation code when it exists, since the application (with full
knowledge of its internal state) can do this more safely and
efficiently than any external tool.

Cleaning up old log files is easily done with a simple cron job, if
the application does not trim old files.  That operation can be done
just as well externally as internally.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Machines should not be friendly.  Machines should be obedient.

Attachment: signature.asc
Description: Digital signature

Reply via email to