doc(readme): update writing logs section wording.

This commit is contained in:
Eason Lin 2017-08-24 00:05:18 +08:00
parent ed0492c15e
commit 5c3876cd85

View File

@ -423,7 +423,7 @@ func main() {
f, _ := os.Create("gin.log") f, _ := os.Create("gin.log")
gin.DefaultWriter = io.MultiWriter(f) gin.DefaultWriter = io.MultiWriter(f)
// Use the following code if you need to write logs to file and console at the same time. // Use the following code if you need to write the logs to file and console at the same time.
// gin.DefaultWriter = io.MultiWriter(f, os.Stdout) // gin.DefaultWriter = io.MultiWriter(f, os.Stdout)
router := gin.Default() router := gin.Default()