diff --git a/README.md b/README.md index 2e6574e5..b5644464 100644 --- a/README.md +++ b/README.md @@ -419,7 +419,7 @@ func main() { // Disable Console Color, you don't need console color when writing the logs to file. gin.DisableConsoleColor() - //Logging to a file + // Logging to a file. f, _ := os.Create("gin.log") gin.DefaultWriter = io.MultiWriter(f)