tuya-cloud-sdk-go icon indicating copy to clipboard operation
tuya-cloud-sdk-go copied to clipboard

log 日志按时间分割,默认为一天 ,有问题 , 每天都产生文件

Open xl-mr opened this issue 5 years ago • 2 comments

随着时间长了,日志生成多了, 就会诞生文件打开数过大,难道不是每天切割 只生成一个文件 image image

xl-mr avatar Dec 30 '20 03:12 xl-mr

麻烦排查下, 再说我即使linux 把文件打开数调整下 这个也不是办法 每天至少新产生100多个文件 时间久了 还是会出现 open too many files

xl-mr avatar Dec 30 '20 03:12 xl-mr

1.提高日志级别到info,可以降低日志的数量 2.可以在服务器上加一个crontab任务,定时删除指定格式的日志文件 @xl-mr

LvBay avatar Dec 30 '20 08:12 LvBay