vmware-archive / vsphere-storage-for-docker

vSphere Storage for Docker
https://vmware.github.io/vsphere-storage-for-docker
Apache License 2.0
251 stars 95 forks source link

Limit the number of log files generated by vDVS/vFile #1973

Closed shuklanirdesh82 closed 6 years ago

shuklanirdesh82 commented 6 years ago

Fixes #1964

tested locally and working as expected.

e.g.

root@sc-rdops-vm18-dhcp-57-89:/var/log# ls -alh
total 22M
drwxrwxr-x 3 root   syslog  4.0K Nov  2 23:21 .
drwxr-xr-x 7 root   root    4.0K Sep 21 18:47 ..
-rw-r--r-- 1 root   root    185K Nov  2 23:18 abc.log
-rw-r----- 1 syslog adm     316K Nov  2 23:17 auth.log
-rw------- 1 root   utmp       0 Sep 21 18:47 btmp
-rw-r--r-- 1 root   root    2.0M Nov  2 23:21 docker-volume-vsphere-2017-11-02T23-21-32.418.log
-rw-r--r-- 1 root   root     764 Nov  2 23:21 docker-volume-vsphere.log
shuklanirdesh82 commented 6 years ago

@tusharnt @govint I have responded to your comments and ready for your review.