Disable logrotation ruby Logger

↘锁芯ラ 提交于 2019-12-13 20:29:41

问题


I am using ruby Logger to log messages

logger = Logger.new('log/sql.log', 1, 500 * 1024 * 1024)

the age of file is 1 day and size of log file is 500MB. when it reaches 500MB, it will rotate log file and will keep 1 day age files.

i have already configured Linux log rotation using crontab for all log files. Now i want to completely disabled log rotation which is causing by ruby Logger.

is there any way to do that ?

Thanks

来源:https://stackoverflow.com/questions/48394406/disable-logrotation-ruby-logger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!