# Rails Logger::Shifting Problem

**URL:** <https://www.ruby-forum.com/t/rails-logger-shifting-problem/172580>\
**Category:** Rails\
**Created:** [July 23, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/rails-logger-shifting-problem/172580 "2009-07-23T15:23:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfspoet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e480ec/32.png) [@wfspoet](https://www.ruby-forum.com/u/wfspoet)\
**Post date:** [July 23, 2009, 3:23pm UTC](https://www.ruby-forum.com/t/rails-logger-shifting-problem/172580/1 "2009-07-23T15:23:59Z")

</div>

I ve run my rails project by creating 3 instance using mongrel cluster

mongrel\_rails cluster::configure -p 8000 -n 3

now my project running three consequent ports like 8000,8001,8002  
ports  
i am using rails version —\>2.1.1

on the first day no problem in creating logfilename.log for running  
all 3 ports.

Problem is ,

on next day when application is running in 1st instance its creating a  
backup of logfilename.log as file\_previous\_date.log when same rails  
project running at the 2nd instance (port 8001) on the that day.

```
     The following error occurred ,

    Logger::ShiftingError in controller
    Shifting failed. closed stream

```

Could any one give a solution for this problem

Thanx in advance
