Project

General

Profile

Actions

Defect #11603

closed

log file rotation is broken: undefined method `log_path' for #<Rails::Application::Configuration:0xb60966d4>

Added by Niels Boeger over 11 years ago. Updated over 11 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

We enabled the log file rotation by changing config/additional_environment.rb like this:

#Logger.new(PATH,NUM_FILES_TO_ROTATE,FILE_SIZE)
config.logger = Logger.new(config.log_path, 7, 1000000)
config.logger.level = Logger::INFO

After a restart of Redmine, we get this error message: undefined method `log_path' for #<Rails::Application::Configuration:0xb60966d4>
Please see attached screenshot for details.

Enviroment:
  • Redmine (2.0-stable, rev. 10171)
  • Passenger/Phusion (latest) and nginx (1.2.2)
  • Ubuntu 10.04
  • MySQL

Files

redmine_log_error.png (63.7 KB) redmine_log_error.png screenshot of the error message Niels Boeger, 2012-08-08 17:46
Actions

Also available in: Atom PDF