mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-24 02:32:17 +08:00
doc(readme): update writing logs section wording.
This commit is contained in:
parent
ed0492c15e
commit
5c3876cd85
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user