File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ func New() (e *Echo) {
158158 //----------
159159
160160 if runtime .GOOS == "windows" {
161- e .DisableColoredLog ( )
161+ e .ColoredLog ( false )
162162 }
163163 e .HTTP2 (false )
164164 e .notFoundHandler = func (c * Context ) error {
@@ -195,12 +195,12 @@ func (e *Echo) Router() *Router {
195195 return e .router
196196}
197197
198- // DisableColoredLog disables colored log.
199- func (e * Echo ) DisableColoredLog ( ) {
198+ // ColoredLog enable/disable colored log.
199+ func (e * Echo ) ColoredLog ( on bool ) {
200200 color .Disable ()
201201}
202202
203- // HTTP2 enables HTTP2 support.
203+ // HTTP2 enable/disable HTTP2 support.
204204func (e * Echo ) HTTP2 (on bool ) {
205205 e .http2 = on
206206}
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ and message `HTTPError.Message`.
4646
4747Enables debug mode.
4848
49- ### Disable colored log
49+ ### Enable/ Disable colored log
5050
51- ` Echo.DisableColoredLog( ) `
51+ ` Echo.ColoredLog(on bool ) `
5252
5353## Routing
5454
You can’t perform that action at this time.
0 commit comments