Gin: disable color output

Created on 20 Dec 2016  路  1Comment  路  Source: gin-gonic/gin

white on bright yellow is pretty hard to read for me. Is there a way to disable color output?

enhancement help wanted

Most helpful comment

Fix by #770

example:

package main

import (
    "github.com/gin-gonic/gin"
)

func main() {
    // Disable Console Color
    gin.DisableConsoleColor()
    r := gin.Default()

    // Ping test
    r.GET("/ping", func(c *gin.Context) {
        c.String(200, "pong")
    })
}

>All comments

Fix by #770

example:

package main

import (
    "github.com/gin-gonic/gin"
)

func main() {
    // Disable Console Color
    gin.DisableConsoleColor()
    r := gin.Default()

    // Ping test
    r.GET("/ping", func(c *gin.Context) {
        c.String(200, "pong")
    })
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

xpbliss picture xpbliss  路  3Comments

rawoke083 picture rawoke083  路  3Comments

kekemuyu picture kekemuyu  路  3Comments

ccaza picture ccaza  路  3Comments

gplume picture gplume  路  3Comments