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

2012-10-21 Thread Colin Law
On 20 October 2012 14:28, leo108 cyh108...@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/applicationRAILS_ENV=production rake

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

2012-10-21 Thread Victor Goff
On Sat, Oct 20, 2012 at 8:28 AM, leo108 cyh108...@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 ? I am curious which log library you are using. From the standard library it is clear you can do

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

2012-10-21 Thread Colin Law
On 21 October 2012 12:09, Victor Goff keeperotpho...@gmail.com wrote: On Sat, Oct 20, 2012 at 8:28 AM, leo108 cyh108...@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 ? I am curious which log

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

2012-10-21 Thread Victor Goff
On Sun, Oct 21, 2012 at 7:32 AM, Colin Law clan...@googlemail.com wrote: On 21 October 2012 12:09, Victor Goff keeperotpho...@gmail.com wrote: On Sat, Oct 20, 2012 at 8:28 AM, leo108 cyh108...@gmail.com wrote: I hope to store the log file by day , because the log file will be so large

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

2012-10-21 Thread Jordon Bedwell
On Sun, Oct 21, 2012 at 5:29 PM, Victor Goff keeperotpho...@gmail.com wrote: Can you use logrotate or whatever the OS gives for rotating logs? Yes I agree you should be using logrotate because most logging in applications is not rotated by them, but instead by logrotate, this way you can easily

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

2012-10-20 Thread leo108
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 received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to