TUN-1880: Save debug and warn level log to logfile

This commit is contained in:
Chung-Ting Huang 2019-05-22 11:05:24 -05:00
parent 38d78f9844
commit 4662e40068
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ func initLogFile(c *cli.Context, loggers ...*logrus.Logger) error {
}
defer f.Close()
pathMap := lfshook.PathMap{
logrus.DebugLevel: filePath,
logrus.WarnLevel: filePath,
logrus.InfoLevel: filePath,
logrus.ErrorLevel: filePath,
logrus.FatalLevel: filePath,