File tree 2 files changed +6
-6
lines changed 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) {
158
158
//----------
159
159
160
160
if runtime .GOOS == "windows" {
161
- e .DisableColoredLog ( )
161
+ e .ColoredLog ( false )
162
162
}
163
163
e .HTTP2 (false )
164
164
e .notFoundHandler = func (c * Context ) error {
@@ -195,12 +195,12 @@ func (e *Echo) Router() *Router {
195
195
return e .router
196
196
}
197
197
198
- // DisableColoredLog disables colored log.
199
- func (e * Echo ) DisableColoredLog ( ) {
198
+ // ColoredLog enable/disable colored log.
199
+ func (e * Echo ) ColoredLog ( on bool ) {
200
200
color .Disable ()
201
201
}
202
202
203
- // HTTP2 enables HTTP2 support.
203
+ // HTTP2 enable/disable HTTP2 support.
204
204
func (e * Echo ) HTTP2 (on bool ) {
205
205
e .http2 = on
206
206
}
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ and message `HTTPError.Message`.
46
46
47
47
Enables debug mode.
48
48
49
- ### Disable colored log
49
+ ### Enable/ Disable colored log
50
50
51
- ` Echo.DisableColoredLog( ) `
51
+ ` Echo.ColoredLog(on bool ) `
52
52
53
53
## Routing
54
54
You can’t perform that action at this time.
0 commit comments