mirror of https://github.com/gin-gonic/gin.git
Renames DefaultLogFile to DefaultWriter
This commit is contained in:
parent
5ee822fcee
commit
873aecefa9
|
@ -39,7 +39,7 @@ func ErrorLoggerT(typ uint32) HandlerFunc {
|
||||||
}
|
}
|
||||||
|
|
||||||
func Logger() HandlerFunc {
|
func Logger() HandlerFunc {
|
||||||
return LoggerWithFile(DefaultLogFile)
|
return LoggerWithFile(DefaultWriter)
|
||||||
}
|
}
|
||||||
|
|
||||||
func LoggerWithFile(out io.Writer) HandlerFunc {
|
func LoggerWithFile(out io.Writer) HandlerFunc {
|
||||||
|
|
2
mode.go
2
mode.go
|
@ -24,7 +24,7 @@ const (
|
||||||
testCode = iota
|
testCode = iota
|
||||||
)
|
)
|
||||||
|
|
||||||
var DefaultLogFile = colorable.NewColorableStdout()
|
var DefaultWriter = colorable.NewColorableStdout()
|
||||||
var ginMode int = debugCode
|
var ginMode int = debugCode
|
||||||
var modeName string = DebugMode
|
var modeName string = DebugMode
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue