Sunday, October 21, 2012

Re: [Rails] Is it possible to store the log file by day?

On 20 October 2012 14:28, leo108 <cyh108005@gmail.com> wrote:
> I hope to store the log file by day , because the log file will be so large
> with the time goes by.Is it possible to do this ?

You could provide a daily cron task, something like
cd /path/to/application && RAILS_ENV=production rake log:clear
or without the rails_env if it is the development log that you are
interested in.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate