Hi all... i'm trying to make work redmine logging system. My configuration file (additional_environment.rb) look like this:
config.log_level = :info
and don't work. When I try with this, official installation doc, redmine hangs up.
RE: Logging configuration - Added by André Bachmann over 9 years ago
Well you should add the following to your additional_environment.rb:
config.logger = Logger.new(config.log_path, 2, 1000000)
config.logger.level = Logger::INFO
And this works for me.
RE: Logging configuration - Added by Lu Pon over 9 years ago
I think your configuration brokes redmine 1.2.1.stable.6263
But I'm solved.. and I'm not sure how. I think it was a file system permissions problem.
RE: Logging configuration - Added by Pavel Potcheptsov almost 8 years ago
how to rotate production.log in 2.2.0?
old method don't work:
config.logger = Logger.new(config.log_path, 7, 1024000) config.logger.level = Logger::WARN
new one work, but without rotation:
config.log_level = :warn
what should I add to second config to rotate logs?
RE: Logging configuration - Added by Diego Fernández almost 8 years ago
Sorry for my very bad english.
I'm using standard lograte on my Redmine linux server for rotate redmine production.log.
This is my configuration:
Create file /etc/logrotate.d/redmine
This configuration rotate daily (you can change to weekly, monthly, etc...), 31 old files, and compress old logs except last rotate (for easy access).
To test configuration you can run:
sudo /usr/sbin/logrotate -f /etc/logrotate.d/redmine
RE: Logging configuration - Added by Amit Pustode over 1 year ago
I configured above same configuration.. but its not working for me ...
Logrotate File created like- production.log.1 , production.log.2 but logs not stored in that file.
Still logs stored in production.log file only ..
su www-data www-data
I am also attachment Screenshot.