2

Two instance of process were running on each server(total 2 servers) and it stopped writing logs in all 4 logs file(each process has its respective log file) after a week when process were started. Process are still running but each process has stopped updating its respective log files.

Below is how i initialized log4r and and writing log.

@@logger = Log4r::Logger.new(@@log_name)
@@logger.outputters = Log4r::RollingFileOutputter.new(@@log_name,
                            :filename => log_filename,
                            :maxsize => max_log_size,
                            :maxtime => max_log_time,
                            :trunk => true,
                            :max_backups => max_backup_logs)
@@logger.debug "logs string"

here max size was 104MB, Time was 604800 sec and max backups set to 0.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
  • `604800 sec` is exactly `7 days`. JIC: since you have set `:trunk` param to `true`, have you checked the directory for new log files having another suffix? – Aleksei Matiushkin Dec 23 '13 at 11:33
  • No there is no extra log file with another suffix. And since Max_backup parameter is initialized with 0, hence it should not create another log file with other suffix. – ankitchopra Jan 03 '14 at 09:59

0 Answers0