Project

General

Profile

Actions

Feature #10751

closed

Better log file management

Added by Carl Gill over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Administration
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix

Description

Currently, there is one log file, production.log. This file grows continuously over time.

It would be nice to have a log manager that includes the following:
  • Automatically cycle log files on set time interval
    • Daily
    • Monthly
    • quarterly
    • never
  • Automatically cycle log files at specified file size (ex 10MB or never)
  • Delete log files older than so many days, weeks, months (or never)

Optionally, it might be nice to separate the log into groups, such as error, debug, and running.

Actions #1

Updated by Cassiano Monteiro over 12 years ago

+1!

Actions #2

Updated by Jean-Philippe Lang over 12 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

This is out the scope of the Redmine core to handle log rotation but the ruby's standard logger that Rails uses accepts some options that you can use.

Have a look at the comments in config/environments/production.log. And here are a few pointers for more information:

Actions #3

Updated by Jean-Philippe Lang over 12 years ago

BTW, I personnaly use logrotate for that.

Actions

Also available in: Atom PDF