Add support for log rotation

When using debug level the log files tends to fill up quickly.
Add support for log rotation using lumberjack, simple and easy to use
log rotation module.

Signed-off-by: Shahar Klein <sklein@nvidia.com>
This commit is contained in:
Shahar Klein
2020-06-15 18:35:15 -07:00
committed by Tomofumi Hayashi
parent 3882e405ef
commit ecb79330c0
16 changed files with 1981 additions and 16 deletions

1
go.mod
View File

@@ -18,6 +18,7 @@ require (
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b
google.golang.org/grpc v1.23.0
gopkg.in/yaml.v2 v2.2.8 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0
k8s.io/api v0.0.0-20181115043458-b799cb063522
k8s.io/apimachinery v0.0.0-20181110190943-2a7c93004028
k8s.io/client-go v0.0.0-20181115111358-9bea17718df8