Ruby on rails log file size too large

前端 未结 9 1371
无人共我
无人共我 2021-02-01 16:01

I stumbled to learn that my rails3.1 log file is super large, around 21mb. Is this, in terms of size normal? What the log file would like in the production environment? Besides,

9条回答
  •  故里飘歌
    2021-02-01 16:11

    The log folder of your Rails application holds three log files corresponding to each of the standard environments. Log files can grow very large over time. A rake task is provided to allow the easy clearing of the log files.

    rake log:clear
    # Truncates all *.log files in log/ to zero bytes 
    # Specify which logs with LOGS=test,development,production
    

提交回复
热议问题