-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 1/29/14, 9:49 AM, Mark H. Wood wrote:
> 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.

I actually like logrotate's capabilities for maintaining a set of log
files: rotate, compress, delete, script, etc.

> 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.

Sure, you can do this with scheduled scripts, but it logrotate is
willing to do that work for you (e.g. easier commands, etc.) why not
use it?

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

iQIcBAEBCAAGBQJS6R3QAAoJEBzwKT+lPKRYcEMP/0FQINqXsimt1QQjxcqWNtXI
A2sXRdtCA/ScwC/vutY1wRJmrqB6/F4ivLLhAxkg6fn6PLo1L5QvU9Ja1k8J6gMU
tGYllI4x4dbGj5Otiyf4jaaL6HZba3D8mabx0yi8eL/apAILlLsxWbr+VQaQpqLr
F5K1xmQQuNslEQNAQHrMFqQtrbqFVVfxihvDDA53nwHKWmbSBVadiZELNY64WFfD
pctQPcElmg3wSLpBe2sRpOvSY/JEdq8srdS/pNNTlK9r0uuR3x+FhZAZpQzJoxlw
9A8SkQhVPFTO6SZDRu+GRooBp9YntEInE6miQHyttBPoBrJPSk181GNyThph4qMw
g+N7DkvAJYWOKSsh9AqKSTUmS2sSda3oxAx541XEaZomZFzP5Y4l6M4AtInc0LBi
jyY6W8iLWuqBaT/20TJrj4v3J/2NZtRxU73pUUB87+gZLxT+rGxm694LXFHpKdyj
LZELCAZeFeX7eFeRv8ibaa7ZLm6QKVA7gJHqqCRJtbwZap+svtV0hEYxMlkrUDyG
abk9XSMW9XDAHRsQfSu3VH/0xtK381sbnm8X3XjhSOjZ2Y1WgA971G1ot8tPzh53
yRFW6UN9QaD7R4rlc8mfcWP5ydriq5wBOLQPstU8lbUEAV1JTWFBtwGS1EbjUoij
W/C8AlmaYXk2qanTYyYI
=tNpi
-----END PGP SIGNATURE-----

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

Reply via email to