labstack / gommon

Common packages for Go
MIT License
536 stars 100 forks source link

No colorized output when using docker with `tty: true` #56

Open ar-siddiqui opened 11 months ago

ar-siddiqui commented 11 months ago

Using the following configuration in the docker setup and no colors are being printed. Running the application without docker prints color fine. Docker compose has tty enabled.

    e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
        Output: e.Logger.Output(),
    }))
aldas commented 11 months ago

If the same application has colors and does not have colors in docker, this is probably not Echo issue. Colors are enabled by this library https://github.com/mattn/go-colorable