mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-15 10:26:57 +00:00
TUN-1880: Save debug and warn level log to logfile
This commit is contained in:
parent
38d78f9844
commit
4662e40068
@ -59,6 +59,8 @@ func initLogFile(c *cli.Context, loggers ...*logrus.Logger) error {
|
|||||||
}
|
}
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
pathMap := lfshook.PathMap{
|
pathMap := lfshook.PathMap{
|
||||||
|
logrus.DebugLevel: filePath,
|
||||||
|
logrus.WarnLevel: filePath,
|
||||||
logrus.InfoLevel: filePath,
|
logrus.InfoLevel: filePath,
|
||||||
logrus.ErrorLevel: filePath,
|
logrus.ErrorLevel: filePath,
|
||||||
logrus.FatalLevel: filePath,
|
logrus.FatalLevel: filePath,
|
||||||
|
Loading…
Reference in New Issue
Block a user