mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-27 07:30:27 +08:00
TUN-1880: Save debug and warn level log to logfile
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user